/*    1:     */ package gov.sat.tax.fwsk.wlrz;
/*    2:     */ 
/*    3:     */ import gov.chinatax.skskj.tools.CreateXmlBean;
/*    4:     */ import gov.sat.tax.fwsk.common.ConnectionPoolBean;
/*    5:     */ import gov.sat.tax.fwsk.rz.GSRzFpdklMxDataBean;
/*    6:     */ import gov.sat.tax.fwsk.rz.WsrzQyUserManageCmdBean;
/*    7:     */ import java.io.BufferedReader;
/*    8:     */ import java.io.IOException;
/*    9:     */ import java.io.InputStreamReader;
/*   10:     */ import java.io.PrintStream;
/*   11:     */ import java.io.PrintWriter;
/*   12:     */ import java.sql.Connection;
/*   13:     */ import java.sql.PreparedStatement;
/*   14:     */ import java.sql.ResultSet;
/*   15:     */ import java.sql.SQLException;
/*   16:     */ import java.text.SimpleDateFormat;
/*   17:     */ import java.util.ArrayList;
/*   18:     */ import java.util.GregorianCalendar;
/*   19:     */ import java.util.List;
/*   20:     */ import java.util.Map;
/*   21:     */ import javax.servlet.ServletConfig;
/*   22:     */ import javax.servlet.ServletException;
/*   23:     */ import javax.servlet.ServletOutputStream;
/*   24:     */ import javax.servlet.http.HttpServlet;
/*   25:     */ import javax.servlet.http.HttpServletRequest;
/*   26:     */ import javax.servlet.http.HttpServletResponse;
/*   27:     */ 
/*   28:     */ public class WlrzJmjControlServletLn
/*   29:     */   extends HttpServlet
/*   30:     */ {
/*   31:     */   private static final long serialVersionUID = 1769719999565272628L;
/*   32:     */   private static JmjPoolCycle pool;
/*   33:  58 */   private static String welcomeMsg = "";
/*   34:     */   
/*   35:     */   public int compDate(String inDate)
/*   36:     */   {
/*   37:  74 */     GregorianCalendar curDate = null;
/*   38:  75 */     GregorianCalendar validDate = null;
/*   39:  76 */     int inYear = Integer.parseInt(inDate.substring(0, 4));
/*   40:  77 */     int inMonth = Integer.parseInt(inDate.substring(5, 7));
/*   41:  78 */     int inDay = Integer.parseInt(inDate.substring(8, 10));
/*   42:     */     
/*   43:  80 */     validDate = new GregorianCalendar(inYear, inMonth - 1, inDay);
/*   44:  81 */     validDate.add(6, 1);
/*   45:  82 */     curDate = new GregorianCalendar();
/*   46:  84 */     if (curDate.before(validDate))
/*   47:     */     {
/*   48:  85 */       curDate.add(5, 15);
/*   49:  86 */       return curDate.after(validDate) ? 0 : 1;
/*   50:     */     }
/*   51:  88 */     return -1;
/*   52:     */   }
/*   53:     */   
/*   54:     */   public String getRdDate(Connection con, String nsr)
/*   55:     */     throws SQLException
/*   56:     */   {
/*   57: 106 */     PreparedStatement stmt = null;
/*   58: 107 */     String sqls = "";
/*   59: 108 */     String rds = "no";
/*   60:     */     try
/*   61:     */     {
/*   62: 111 */       if (con == null)
/*   63:     */       {
/*   64: 112 */         System.out.println("[WARN] 开票日期和认定日期比较数据库连接错");
/*   65: 113 */         return "error";
/*   66:     */       }
/*   67: 115 */       sqls = 
/*   68: 116 */         " select to_char(pz_rq,'yyyy-mm-dd') as rzdate from htjs.ht_ybnsr_dab where nsrsbh='" + nsr + "' and YXBZ='N' ";
/*   69:     */       
/*   70: 118 */       stmt = con.prepareStatement(sqls);
/*   71: 119 */       ResultSet rs = stmt.executeQuery();
/*   72: 121 */       while (rs.next()) {
/*   73: 122 */         rds = rs.getString("rzdate");
/*   74:     */       }
/*   75: 124 */       rs = null;
/*   76:     */     }
/*   77:     */     catch (SQLException e)
/*   78:     */     {
/*   79: 126 */       System.out.println("[WARN] 取认定日期出现异常：" + e.toString());
/*   80: 127 */       return "error";
/*   81:     */     }
/*   82:     */     finally
/*   83:     */     {
/*   84: 129 */       if (stmt != null) {
/*   85: 130 */         stmt.close();
/*   86:     */       }
/*   87:     */     }
/*   88: 129 */     if (stmt != null) {
/*   89: 130 */       stmt.close();
/*   90:     */     }
/*   91: 132 */     return rds;
/*   92:     */   }
/*   93:     */   
/*   94:     */   public void dispMessage(HttpServletResponse res, String err_no, String title, String rzsj, String czyDm, String czyPwd)
/*   95:     */     throws ServletException, IOException
/*   96:     */   {
/*   97: 151 */     res.setContentType("text/html; charset=gb2312");
/*   98: 152 */     PrintWriter out = res.getWriter();
/*   99: 153 */     out.println(err_no);
/*  100: 154 */     out.println(title);
/*  101: 155 */     out.println(rzsj);
/*  102: 156 */     out.println("CZYDM:" + czyDm);
/*  103: 157 */     System.out.println("[INFO]返回数据:" + err_no);
/*  104:     */   }
/*  105:     */   
/*  106:     */   public void dispMessage1(HttpServletResponse res, String title)
/*  107:     */     throws ServletException, IOException
/*  108:     */   {
/*  109: 175 */     res.setContentType("text/html; charset=gb2312");
/*  110: 176 */     PrintWriter out = res.getWriter();
/*  111:     */     
/*  112: 178 */     out.println(title);
/*  113:     */   }
/*  114:     */   
/*  115:     */   public void init(ServletConfig config)
/*  116:     */     throws ServletException
/*  117:     */   {
/*  118: 197 */     super.init(config);
/*  119: 198 */     pool = JmjPoolCycle.createInstance();
/*  120: 199 */     WlrzConst.init();
/*  121:     */     
/*  122:     */ 
/*  123:     */ 
/*  124:     */ 
/*  125:     */ 
/*  126:     */ 
/*  127:     */ 
/*  128:     */ 
/*  129:     */ 
/*  130:     */ 
/*  131:     */ 
/*  132:     */ 
/*  133:     */ 
/*  134:     */ 
/*  135:     */ 
/*  136:     */ 
/*  137:     */ 
/*  138:     */ 
/*  139:     */ 
/*  140:     */ 
/*  141:     */ 
/*  142: 221 */     BufferedReader fi = null;
/*  143:     */     try
/*  144:     */     {
/*  145: 223 */       String line = null;
/*  146: 224 */       fi = new BufferedReader(new InputStreamReader(getClass()
/*  147: 225 */         .getResourceAsStream("/welcome.txt")));
/*  148: 226 */       while ((line = fi.readLine()) != null) {
/*  149: 227 */         welcomeMsg = 
/*  150: 228 */           welcomeMsg + line + System.getProperty("line.separator");
/*  151:     */       }
/*  152:     */     }
/*  153:     */     catch (IOException e)
/*  154:     */     {
/*  155: 231 */       System.out.println("[WARN] welcome.txt 不存在!客户端登录提示信息为空");
/*  156: 233 */       if (fi != null) {
/*  157:     */         try
/*  158:     */         {
/*  159: 235 */           fi.close();
/*  160:     */         }
/*  161:     */         catch (IOException localIOException1) {}
/*  162:     */       }
/*  163:     */     }
/*  164:     */     finally
/*  165:     */     {
/*  166: 233 */       if (fi != null) {
/*  167:     */         try
/*  168:     */         {
/*  169: 235 */           fi.close();
/*  170:     */         }
/*  171:     */         catch (IOException localIOException2) {}
/*  172:     */       }
/*  173:     */     }
/*  174:     */   }
/*  175:     */   
/*  176:     */   private String TransQuotePrintable(String mw)
/*  177:     */   {
/*  178: 256 */     byte[] byteCode = (byte[])null;
/*  179: 257 */     int count = 0;
/*  180:     */     
/*  181: 259 */     String tem = "";
/*  182: 260 */     String tems = "";
/*  183: 261 */     String srent = "";
/*  184: 262 */     count = mw.length();
/*  185: 263 */     byteCode = new byte[1];
/*  186: 264 */     int j = 0;
/*  187: 265 */     for (int i = 0; i < count;)
/*  188:     */     {
/*  189: 266 */       tem = mw.substring(i, i + 1);
/*  190: 267 */       if (tem.equals("%"))
/*  191:     */       {
/*  192: 268 */         tems = mw.substring(i + 1, i + 3);
/*  193: 269 */         i += 3;
/*  194: 270 */         byteCode[0] = Integer.valueOf(tems, 16).byteValue();
/*  195: 271 */         String str = new String(byteCode);
/*  196: 272 */         srent = srent + str;
/*  197: 273 */         j++;
/*  198:     */       }
/*  199:     */       else
/*  200:     */       {
/*  201: 275 */         i++;
/*  202: 276 */         tems = tem;
/*  203: 277 */         srent = srent + tems;
/*  204:     */       }
/*  205:     */     }
/*  206: 280 */     return srent;
/*  207:     */   }
/*  208:     */   
/*  209:     */   public void dispWelcomeMessage(HttpServletResponse res, String err_no, String title, String rzsj, String validDate)
/*  210:     */     throws ServletException, IOException
/*  211:     */   {
/*  212: 299 */     res.setContentType("text/html; charset=gb2312");
/*  213: 300 */     PrintWriter out = res.getWriter();
/*  214: 301 */     out.println(err_no);
/*  215: 302 */     out.println(title);
/*  216: 303 */     out.println(rzsj);
/*  217: 304 */     out.println(validDate);
/*  218: 305 */     out.println();
/*  219: 307 */     if (!welcomeMsg.equals("")) {
/*  220: 308 */       out.println(welcomeMsg);
/*  221:     */     }
/*  222:     */   }
/*  223:     */   
/*  224:     */   public void doGet(HttpServletRequest request, HttpServletResponse response)
/*  225:     */     throws ServletException, IOException
/*  226:     */   {
/*  227: 327 */     performTask(request, response);
/*  228:     */   }
/*  229:     */   
/*  230:     */   public void doPost(HttpServletRequest request, HttpServletResponse response)
/*  231:     */     throws ServletException, IOException
/*  232:     */   {
/*  233: 345 */     performTask(request, response);
/*  234:     */   }
/*  235:     */   
/*  236:     */   public String getCurDateTime()
/*  237:     */   {
/*  238: 362 */     java.sql.Date dt = new java.sql.Date(System.currentTimeMillis());
/*  239: 363 */     SimpleDateFormat sdf = new SimpleDateFormat(
/*  240: 364 */       "yyyy-MM-dd HH:mm:ss");
/*  241: 365 */     String rz_sjstr = sdf.format(dt);
/*  242: 366 */     return rz_sjstr;
/*  243:     */   }
/*  244:     */   
/*  245:     */   public String getServletInfo()
/*  246:     */   {
/*  247: 380 */     return super.getServletInfo();
/*  248:     */   }
/*  249:     */   
/*  250:     */   private InFpDataBean makeFpDataBeanHy(TransRzParaBean rq)
/*  251:     */     throws Exception
/*  252:     */   {
/*  253: 397 */     InFpDataBean tmpFpBean = new InFpDataBean();
/*  254: 398 */     String in_Fpdm = "";String in_Fphm = "";String in_Kpsj = "";
/*  255: 399 */     String in_GfTax = "";String in_XfTax = "";String in_Fpje = "0";String in_Fpse = "0";String fpmw = "";String in_Fpsl = "";
/*  256: 400 */     String in_Year = "2000";String in_Month = "01";String in_Day = "01";
/*  257:     */     
/*  258: 402 */     double fpje = 0.0D;double fpse = 0.0D;
/*  259:     */     
/*  260: 404 */     String mw1 = rq.getParameter("miwen1") == null ? "" : rq.getParameter("miwen1");
/*  261: 405 */     String mw2 = rq.getParameter("miwen2") == null ? "" : rq.getParameter("miwen2");
/*  262: 406 */     String mw3 = rq.getParameter("miwen3") == null ? "" : rq.getParameter("miwen3");
/*  263: 407 */     String mw4 = rq.getParameter("miwen4") == null ? "" : rq.getParameter("miwen4");
/*  264:     */     
/*  265: 409 */     boolean hzfw = "hzfw".equals(rq.getParameter("action"));
/*  266: 410 */     if (hzfw)
/*  267:     */     {
/*  268: 412 */       fpmw = mw1;
/*  269:     */       
/*  270: 414 */       tmpFpBean.setHzInfoList(getInHzInfoList(rq.getParameter("nsrsbh"), mw2, mw3, mw4));
/*  271:     */     }
/*  272:     */     else
/*  273:     */     {
/*  274: 416 */       fpmw = mw1 + mw2 + mw3 + mw4;
/*  275: 417 */       mw2 = "";
/*  276: 418 */       mw3 = "";
/*  277: 419 */       mw4 = "";
/*  278:     */     }
/*  279: 422 */     tmpFpBean.setQd_bz(hzfw ? "Y" : "N");
/*  280:     */     
/*  281:     */ 
/*  282: 425 */     fpmw = TransQuotePrintable(fpmw);
/*  283:     */     
/*  284: 427 */     in_Year = rq.getParameter("kpyear") == null ? "2001" : rq.getParameter("kpyear");
/*  285: 428 */     in_Month = rq.getParameter("kpmonth") == null ? "01" : rq.getParameter("kpmonth");
/*  286: 429 */     in_Day = rq.getParameter("kpday") == null ? "01" : rq.getParameter("kpday");
/*  287: 430 */     in_Kpsj = in_Year.substring(2) + in_Month + in_Day;
/*  288:     */     
/*  289: 432 */     in_Fpdm = rq.getParameter("fpdm") == null ? "" : rq.getParameter("fpdm");
/*  290: 433 */     in_Fphm = rq.getParameter("fphm") == null ? "" : rq.getParameter("fphm");
/*  291: 434 */     in_GfTax = rq.getParameter("gsbh") == null ? "" : rq.getParameter("gsbh");
/*  292: 435 */     in_XfTax = rq.getParameter("xsbh") == null ? "" : rq.getParameter("xsbh");
/*  293: 436 */     in_Fpje = rq.getParameter("jine") == null ? "0" : rq.getParameter("jine");
/*  294: 437 */     in_Fpse = rq.getParameter("shuie") == null ? "0" : rq.getParameter("shuie");
/*  295: 438 */     in_Fpsl = "17";
/*  296:     */     
/*  297: 440 */     String tmpnsh = rq.getParameter("nsrsbh") == null ? "" : rq.getParameter("nsrsbh");
/*  298:     */     try
/*  299:     */     {
/*  300: 442 */       fpje = Double.parseDouble(in_Fpje);
/*  301: 443 */       fpse = Double.parseDouble(in_Fpse);
/*  302:     */     }
/*  303:     */     catch (Exception e)
/*  304:     */     {
/*  305: 445 */       fpje = 0.0D;
/*  306: 446 */       fpse = 0.0D;
/*  307: 447 */       System.out.println("[WARN] 提交的金额、税额数据非法, 请检查: " + in_Fpje + ", " + in_Fpse);
/*  308:     */     }
/*  309: 449 */     tmpFpBean.setRz_nsrsbh(tmpnsh);
/*  310: 450 */     tmpFpBean.setGf_nsrsbh(in_GfTax);
/*  311: 451 */     tmpFpBean.setXf_nsrsbh(in_XfTax);
/*  312: 452 */     tmpFpBean.setFp_dm(in_Fpdm);
/*  313: 453 */     tmpFpBean.setFp_hm(in_Fphm);
/*  314: 454 */     tmpFpBean.setKprq(in_Kpsj);
/*  315: 455 */     tmpFpBean.setFp_je(fpje);
/*  316: 456 */     tmpFpBean.setFp_se(fpse);
/*  317: 457 */     tmpFpBean.setFp_sl(in_Fpsl);
/*  318: 458 */     tmpFpBean.setFpmw(fpmw);
/*  319: 459 */     return tmpFpBean;
/*  320:     */   }
/*  321:     */   
/*  322:     */   private InFpDataBean makeFpDataBean(TranslateParaCmdBean rq)
/*  323:     */     throws Exception
/*  324:     */   {
/*  325: 477 */     InFpDataBean tmpFpBean = new InFpDataBean();
/*  326: 478 */     String in_Fpdm = "";String in_Fphm = "";String in_Kpsj = "";
/*  327: 479 */     String in_GfTax = "";String in_XfTax = "";String in_Fpje = "0";String in_Fpse = "0";String fpmw = "";String in_Fpsl = "";
/*  328: 480 */     String in_Year = "2000";String in_Month = "01";String in_Day = "01";
/*  329:     */     
/*  330: 482 */     double fpje = 0.0D;double fpse = 0.0D;
/*  331:     */     
/*  332: 484 */     String mw1 = rq.getParameter("miwen1") == null ? "" : rq.getParameter("miwen1");
/*  333: 485 */     String mw2 = rq.getParameter("miwen2") == null ? "" : rq.getParameter("miwen2");
/*  334: 486 */     String mw3 = rq.getParameter("miwen3") == null ? "" : rq.getParameter("miwen3");
/*  335: 487 */     String mw4 = rq.getParameter("miwen4") == null ? "" : rq.getParameter("miwen4");
/*  336:     */     
/*  337: 489 */     boolean hzfw = "hzfw".equals(rq.getParameter("action"));
/*  338: 490 */     if (hzfw)
/*  339:     */     {
/*  340: 492 */       fpmw = mw1;
/*  341:     */       
/*  342: 494 */       tmpFpBean.setHzInfoList(getInHzInfoList(rq.getParameter("nsrsbh"), 
/*  343: 495 */         mw2, mw3, mw4));
/*  344:     */     }
/*  345:     */     else
/*  346:     */     {
/*  347: 498 */       fpmw = mw1 + mw2 + mw3 + mw4;
/*  348: 499 */       mw2 = "";
/*  349: 500 */       mw3 = "";
/*  350: 501 */       mw4 = "";
/*  351:     */     }
/*  352: 504 */     tmpFpBean.setQd_bz(hzfw ? "Y" : "N");
/*  353:     */     
/*  354:     */ 
/*  355: 507 */     fpmw = TransQuotePrintable(fpmw);
/*  356:     */     
/*  357: 509 */     in_Year = rq.getParameter("kpyear") == null ? "2001" : rq.getParameter("kpyear");
/*  358: 510 */     in_Month = rq.getParameter("kpmonth") == null ? "01" : rq.getParameter("kpmonth");
/*  359: 511 */     in_Day = rq.getParameter("kpday") == null ? "01" : rq.getParameter("kpday");
/*  360: 512 */     in_Kpsj = in_Year.substring(2) + in_Month + in_Day;
/*  361:     */     
/*  362: 514 */     in_Fpdm = rq.getParameter("fpdm") == null ? "" : rq.getParameter("fpdm");
/*  363: 515 */     in_Fphm = rq.getParameter("fphm") == null ? "" : rq.getParameter("fphm");
/*  364: 516 */     in_GfTax = rq.getParameter("gsbh") == null ? "" : rq.getParameter("gsbh");
/*  365: 517 */     in_XfTax = rq.getParameter("xsbh") == null ? "" : rq.getParameter("xsbh");
/*  366: 518 */     in_Fpje = rq.getParameter("jine") == null ? "0" : rq.getParameter("jine");
/*  367: 519 */     in_Fpse = rq.getParameter("shuie") == null ? "0" : rq.getParameter("shuie");
/*  368: 520 */     in_Fpsl = "17";
/*  369:     */     
/*  370: 522 */     String tmpnsh = rq.getParameter("nsrsbh") == null ? "" : rq.getParameter("nsrsbh");
/*  371:     */     try
/*  372:     */     {
/*  373: 524 */       fpje = Double.parseDouble(in_Fpje);
/*  374: 525 */       fpse = Double.parseDouble(in_Fpse);
/*  375:     */     }
/*  376:     */     catch (Exception e)
/*  377:     */     {
/*  378: 527 */       fpje = 0.0D;
/*  379: 528 */       fpse = 0.0D;
/*  380: 530 */       if (WlrzConst.isDebug()) {
/*  381: 531 */         System.out.println("[WARN] 提交的金额、税额数据非法, 请检查: " + in_Fpje + ", " + in_Fpse);
/*  382:     */       }
/*  383:     */     }
/*  384: 533 */     tmpFpBean.setRz_nsrsbh(tmpnsh);
/*  385: 534 */     tmpFpBean.setGf_nsrsbh(in_GfTax);
/*  386: 535 */     tmpFpBean.setXf_nsrsbh(in_XfTax);
/*  387: 536 */     tmpFpBean.setFp_dm(in_Fpdm);
/*  388: 537 */     tmpFpBean.setFp_hm(in_Fphm);
/*  389: 538 */     tmpFpBean.setKprq(in_Kpsj);
/*  390: 539 */     tmpFpBean.setFp_je(fpje);
/*  391: 540 */     tmpFpBean.setFp_se(fpse);
/*  392: 541 */     tmpFpBean.setFp_sl(in_Fpsl);
/*  393: 542 */     tmpFpBean.setFpmw(fpmw);
/*  394:     */     
/*  395: 544 */     return tmpFpBean;
/*  396:     */   }
/*  397:     */   
/*  398:     */   private InFpDataBean makeFpDataBean(HttpServletRequest rq)
/*  399:     */     throws Exception
/*  400:     */   {
/*  401: 561 */     InFpDataBean tmpFpBean = new InFpDataBean();
/*  402: 562 */     String in_Fpdm = "";String in_Fphm = "";String in_Kpsj = "";
/*  403: 563 */     String in_GfTax = "";String in_XfTax = "";String in_Fpje = "0";String in_Fpse = "0";String fpmw = "";String in_Fpsl = "";
/*  404: 564 */     String in_Year = "2000";String in_Month = "01";String in_Day = "01";
/*  405:     */     
/*  406: 566 */     double fpje = 0.0D;double fpse = 0.0D;
/*  407:     */     
/*  408: 568 */     String mw1 = rq.getParameter("miwen1") == null ? "" : rq
/*  409: 569 */       .getParameter("miwen1");
/*  410: 570 */     String mw2 = rq.getParameter("miwen2") == null ? "" : rq
/*  411: 571 */       .getParameter("miwen2");
/*  412: 572 */     String mw3 = rq.getParameter("miwen3") == null ? "" : rq
/*  413: 573 */       .getParameter("miwen3");
/*  414: 574 */     String mw4 = rq.getParameter("miwen4") == null ? "" : rq
/*  415: 575 */       .getParameter("miwen4");
/*  416:     */     
/*  417: 577 */     boolean hzfw = "hzfw".equals(rq.getParameter("action"));
/*  418: 578 */     if (hzfw)
/*  419:     */     {
/*  420: 580 */       fpmw = mw1;
/*  421:     */       
/*  422: 582 */       tmpFpBean.setHzInfoList(getInHzInfoList(rq.getParameter("nsrsbh"), 
/*  423: 583 */         mw2, mw3, mw4));
/*  424:     */     }
/*  425:     */     else
/*  426:     */     {
/*  427: 585 */       fpmw = mw1 + mw2 + mw3 + mw4;
/*  428: 586 */       mw2 = "";
/*  429: 587 */       mw3 = "";
/*  430: 588 */       mw4 = "";
/*  431:     */     }
/*  432: 591 */     tmpFpBean.setQd_bz(hzfw ? "Y" : "N");
/*  433:     */     
/*  434:     */ 
/*  435: 594 */     fpmw = TransQuotePrintable(fpmw);
/*  436:     */     
/*  437: 596 */     in_Year = rq.getParameter("kpyear") == null ? "2001" : rq
/*  438: 597 */       .getParameter("kpyear");
/*  439: 598 */     in_Month = rq.getParameter("kpmonth") == null ? "01" : rq
/*  440: 599 */       .getParameter("kpmonth");
/*  441: 600 */     in_Day = rq.getParameter("kpday") == null ? "01" : rq
/*  442: 601 */       .getParameter("kpday");
/*  443: 602 */     in_Kpsj = in_Year.substring(2) + in_Month + in_Day;
/*  444:     */     
/*  445: 604 */     in_Fpdm = rq.getParameter("fpdm") == null ? "" : rq
/*  446: 605 */       .getParameter("fpdm");
/*  447: 606 */     in_Fphm = rq.getParameter("fphm") == null ? "" : rq
/*  448: 607 */       .getParameter("fphm");
/*  449: 608 */     in_GfTax = rq.getParameter("gsbh") == null ? "" : rq
/*  450: 609 */       .getParameter("gsbh");
/*  451: 610 */     in_XfTax = rq.getParameter("xsbh") == null ? "" : rq
/*  452: 611 */       .getParameter("xsbh");
/*  453: 612 */     in_Fpje = rq.getParameter("jine") == null ? "0" : rq
/*  454: 613 */       .getParameter("jine");
/*  455: 614 */     in_Fpse = rq.getParameter("shuie") == null ? "0" : rq
/*  456: 615 */       .getParameter("shuie");
/*  457: 616 */     in_Fpsl = "17";
/*  458:     */     
/*  459: 618 */     String tmpnsh = rq.getParameter("nsrsbh") == null ? "" : rq
/*  460: 619 */       .getParameter("nsrsbh");
/*  461:     */     try
/*  462:     */     {
/*  463: 621 */       fpje = Double.parseDouble(in_Fpje);
/*  464: 622 */       fpse = Double.parseDouble(in_Fpse);
/*  465:     */     }
/*  466:     */     catch (Exception e)
/*  467:     */     {
/*  468: 624 */       fpje = 0.0D;
/*  469: 625 */       fpse = 0.0D;
/*  470: 627 */       if (WlrzConst.isDebug()) {
/*  471: 628 */         System.out.println("[WARN] 提交的金额、税额数据非法, 请检查: " + in_Fpje + ", " + 
/*  472: 629 */           in_Fpse);
/*  473:     */       }
/*  474:     */     }
/*  475: 631 */     tmpFpBean.setRz_nsrsbh(tmpnsh);
/*  476: 632 */     tmpFpBean.setGf_nsrsbh(in_GfTax);
/*  477: 633 */     tmpFpBean.setXf_nsrsbh(in_XfTax);
/*  478: 634 */     tmpFpBean.setFp_dm(in_Fpdm);
/*  479: 635 */     tmpFpBean.setFp_hm(in_Fphm);
/*  480: 636 */     tmpFpBean.setKprq(in_Kpsj);
/*  481: 637 */     tmpFpBean.setFp_je(fpje);
/*  482: 638 */     tmpFpBean.setFp_se(fpse);
/*  483: 639 */     tmpFpBean.setFp_sl(in_Fpsl);
/*  484: 640 */     tmpFpBean.setFpmw(fpmw);
/*  485:     */     
/*  486: 642 */     return tmpFpBean;
/*  487:     */   }
/*  488:     */   
/*  489:     */   public void performTask(HttpServletRequest request, HttpServletResponse response)
/*  490:     */     throws ServletException, IOException
/*  491:     */   {
/*  492: 661 */     String tmp3 = request.getQueryString();
/*  493: 662 */     String tmp1 = request.getParameter("fpdm");
/*  494: 663 */     System.out.println(tmp1);
/*  495: 664 */     String tmp2 = request.getParameter("fphm");
/*  496: 665 */     System.out.println(tmp2);
/*  497: 666 */     String action = null;
/*  498: 667 */     boolean security = true;
/*  499: 668 */     boolean b_action = false;
/*  500: 669 */     String swjg_dm = "";
/*  501: 670 */     String nsrsbh = "";String czyDm = "";String czyMc = "";String czyPwd = "";
/*  502:     */     
/*  503: 672 */     InFpDataBean inFpData = null;
/*  504: 673 */     JmFpDataBean jmFpData = null;
/*  505: 674 */     long ulms = System.currentTimeMillis();
/*  506: 675 */     boolean hytrans = false;
/*  507: 676 */     boolean szflag = false;
/*  508: 677 */     boolean limitusr = false;
/*  509: 678 */     boolean hzfw = false;
/*  510: 679 */     String rsj = null;
/*  511: 680 */     String fpzl = "YB";
/*  512: 681 */     String gdenable = "N";
/*  513: 682 */     String fjenable = "N";
/*  514:     */     
/*  515: 684 */     boolean isNewClient = false;
/*  516:     */     
/*  517:     */ 
/*  518: 687 */     String gdzc = "";
/*  519:     */     
/*  520: 689 */     TransRzParaBean ts = null;
/*  521:     */     
/*  522: 691 */     String data = request.getParameter("ENCODE");
/*  523: 692 */     String rzdata = request.getParameter("RZDATA");
/*  524: 693 */     String isJM = request.getParameter("isJM");
/*  525: 694 */     if ("true".equals(isJM))
/*  526:     */     {
/*  527: 695 */       String rtn = JMSvr(request);
/*  528: 696 */       response.setContentType("text/html; charset=gb2312");
/*  529: 697 */       PrintWriter out = response.getWriter();
/*  530: 698 */       out.println(rtn);
/*  531: 699 */       return;
/*  532:     */     }
/*  533: 701 */     if ((rzdata == null) && (data == null))
/*  534:     */     {
/*  535: 702 */       hytrans = false;
/*  536: 703 */       security = false;
/*  537: 704 */       action = request.getParameter("action");
/*  538: 705 */       szflag = true;
/*  539: 706 */       System.out.println("未加密版本");
/*  540:     */     }
/*  541: 717 */     else if (rzdata != null)
/*  542:     */     {
/*  543: 718 */       hytrans = true;
/*  544: 719 */       security = false;
/*  545: 720 */       szflag = false;
/*  546: 721 */       if (rzdata.startsWith("HY"))
/*  547:     */       {
/*  548: 722 */         rzdata = rzdata.substring(2);
/*  549: 723 */         ts = new TransRzParaBean("");
/*  550:     */       }
/*  551: 725 */       else if (rzdata.length() > 580)
/*  552:     */       {
/*  553: 726 */         ts = new TransRzParaBean(88);
/*  554:     */       }
/*  555:     */       else
/*  556:     */       {
/*  557: 728 */         ts = new TransRzParaBean();
/*  558:     */       }
/*  559: 730 */       ts.doDecrypt(rzdata);
/*  560: 731 */       if ("hzfw".equals(ts.getParameter("action"))) {
/*  561: 732 */         hzfw = true;
/*  562:     */       }
/*  563:     */     }
/*  564: 735 */     if ((data == null) || (data.length() <= 56)) {
/*  565: 736 */       action = request.getParameter("action");
/*  566:     */     }
/*  567: 739 */     TranslateParaCmdBean parb = new TranslateParaCmdBean();
/*  568: 741 */     if (security)
/*  569:     */     {
/*  570: 742 */       parb.doDecrypt(data.trim());
/*  571:     */       
/*  572: 744 */       String newClient = parb.getParameter("newclient");
/*  573: 745 */       if ((newClient != null) && ("true".equals(newClient))) {
/*  574: 746 */         isNewClient = true;
/*  575:     */       }
/*  576: 748 */       action = parb.getParameter("action");
/*  577:     */       
/*  578:     */ 
/*  579:     */ 
/*  580: 752 */       String userCmd = parb.getParameter("cmd") == null ? "n" : parb.getParameter("cmd");
/*  581:     */       
/*  582: 754 */       String cxfs = parb.getParameter("cxfs") == null ? "null" : parb.getParameter("cxfs").trim();
/*  583: 755 */       String rz_nsrsbh = parb.getParameter("nsrsbh") == null ? "" : parb.getParameter("nsrsbh").trim();
/*  584: 756 */       String yf = parb.getParameter("rzyf") == null ? "" : parb.getParameter("rzyf").trim();
/*  585:     */       
/*  586: 758 */       String bdate = parb.getParameter("dfrom") == null ? "no" : parb.getParameter("dfrom").trim();
/*  587: 759 */       String edate = parb.getParameter("dto") == null ? "no" : parb.getParameter("dto").trim();
/*  588: 761 */       if (bdate.length() == 0) {
/*  589: 762 */         bdate = "no";
/*  590:     */       }
/*  591: 763 */       if (edate.length() == 0) {
/*  592: 764 */         edate = "no";
/*  593:     */       }
/*  594: 767 */       String fplx = parb.getParameter("fplx") == null ? "A" : parb.getParameter("fplx");
/*  595: 768 */       gdzc = parb.getParameter("gd") == null ? "A" : parb.getParameter("gd");
/*  596: 769 */       if (userCmd.equals("wpmx"))
/*  597:     */       {
/*  598: 770 */         String cxfpdm = parb.getParameter("fpdm") == null ? "" : parb.getParameter("fpdm");
/*  599: 771 */         String cxfphm = parb.getParameter("fphm") == null ? "" : parb.getParameter("fphm");
/*  600: 772 */         System.out.println("[info] 增值税发票物品明细查询 nsr:" + rz_nsrsbh + " fpdm:" + cxfpdm + " fphm:" + cxfphm);
/*  601: 773 */         if ((cxfpdm.equals("")) || (cxfphm.equals(""))) {
/*  602: 774 */           return;
/*  603:     */         }
/*  604: 776 */         String rtnxml = WlrzYcrzcxCmdBean.doQueryXmlWpmx(rz_nsrsbh, cxfpdm, cxfphm);
/*  605: 777 */         ServletOutputStream out = null;
/*  606:     */         
/*  607: 779 */         byte[] buf = rtnxml.getBytes();
/*  608: 780 */         out = response.getOutputStream();
/*  609: 781 */         out.write(buf);
/*  610: 782 */         out.flush();
/*  611: 783 */         out.close();
/*  612: 784 */         System.out.println("[info] 明细查询成功返回 ");
/*  613: 785 */         return;
/*  614:     */       }
/*  615: 787 */       if (userCmd.equals("mx"))
/*  616:     */       {
/*  617: 788 */         if (WlrzConst.isDebug()) {
/*  618: 789 */           System.out.println("[info] 增值税发票 cxfs: " + cxfs + " nsr: " + rz_nsrsbh + " ssyf: " + yf + " bfrom :" + bdate + " bto " + edate);
/*  619:     */         }
/*  620: 791 */         if ((cxfs.equals("21")) || (cxfs.equals("20")))
/*  621:     */         {
/*  622: 792 */           String rml = WlrzYcrzcxCmdBean.doQueryXmlMx(rz_nsrsbh, yf, bdate, edate, cxfs, fplx, gdzc);
/*  623: 793 */           ServletOutputStream out = null;
/*  624:     */           
/*  625:     */ 
/*  626: 796 */           byte[] buf = rml.getBytes();
/*  627: 797 */           out = response.getOutputStream();
/*  628: 798 */           out.write(buf);
/*  629: 799 */           out.flush();
/*  630: 800 */           out.close();
/*  631: 801 */           System.out.println("[info] 明细查询成功返回 ");
/*  632: 802 */           return;
/*  633:     */         }
/*  634:     */       }
/*  635: 805 */       if (userCmd.equals("hz"))
/*  636:     */       {
/*  637: 806 */         System.out.println("[info] hz cxfs: " + cxfs + " nsr: " + rz_nsrsbh + " ssyf: " + yf + " bfrom :" + bdate + " bto " + edate);
/*  638: 808 */         if ((cxfs.equals("20")) || (cxfs.equals("21")))
/*  639:     */         {
/*  640: 809 */           String rml = WlrzYcrzcxCmdBean.doQueryXmlHz(rz_nsrsbh, yf, bdate, edate, cxfs, fplx, gdzc);
/*  641: 810 */           ServletOutputStream out = null;
/*  642:     */           
/*  643:     */ 
/*  644: 813 */           byte[] buf = rml.getBytes();
/*  645: 814 */           out = response.getOutputStream();
/*  646: 815 */           out.write(buf);
/*  647: 816 */           out.flush();
/*  648: 817 */           out.close();
/*  649: 818 */           System.out.println("[info] 汇总查询成功返回 ");
/*  650: 819 */           return;
/*  651:     */         }
/*  652:     */       }
/*  653: 823 */       if (userCmd.equals("kh"))
/*  654:     */       {
/*  655: 824 */         System.out.println("[INFO] ：" + parb.getParameter("nsrsbh"));
/*  656:     */         
/*  657: 826 */         WlrzYcrzcxCmdBean.doQyKh(parb, response);
/*  658: 827 */         return;
/*  659:     */       }
/*  660: 829 */       if ((action == null) || (action.length() == 0))
/*  661:     */       {
/*  662: 830 */         dispMessage(response, "800", "参数错误action为空！", getCurDateTime(), czyDm, czyPwd);
/*  663: 831 */         System.out.println("[INFO] 参数错误action为空: " + nsrsbh + ",操作员:" + czyDm + ", 时间:" + getCurDateTime());
/*  664: 832 */         return;
/*  665:     */       }
/*  666: 834 */       if (action.equals("rzjgcx"))
/*  667:     */       {
/*  668: 836 */         if (security) {
/*  669: 837 */           WlrzYcrzcxCmdBean.doQuerySjrzSecurity(parb, response);
/*  670:     */         }
/*  671: 838 */         return;
/*  672:     */       }
/*  673: 840 */       if (action.equals("kh"))
/*  674:     */       {
/*  675: 842 */         WlrzYcrzcxCmdBean.doQyKh(parb, response);
/*  676: 843 */         return;
/*  677:     */       }
/*  678: 845 */       if (action.equals("jzrq"))
/*  679:     */       {
/*  680: 847 */         WlrzYcrzcxCmdBean.doChangeJzrq(parb, response);
/*  681: 848 */         return;
/*  682:     */       }
/*  683: 850 */       if (action.equals("pwd"))
/*  684:     */       {
/*  685: 852 */         WlrzYcrzcxCmdBean.doUpdatePwd(response, parb);
/*  686: 853 */         return;
/*  687:     */       }
/*  688: 856 */       if (action.equals("hzfw")) {
/*  689: 857 */         hzfw = true;
/*  690:     */       }
/*  691: 859 */       b_action = action.equals("login");
/*  692:     */     }
/*  693: 861 */     if (security)
/*  694:     */     {
/*  695: 862 */       nsrsbh = parb.getParameter("nsrsbh") != null ? parb.getParameter("nsrsbh") : "";
/*  696: 863 */       czyDm = parb.getParameter("czydm") != null ? parb.getParameter("czydm") : "";
/*  697: 864 */       czyPwd = parb.getParameter("passwd") != null ? parb.getParameter("passwd") : "";
/*  698:     */     }
/*  699: 865 */     else if (hytrans)
/*  700:     */     {
/*  701: 866 */       nsrsbh = ts.getParameter("nsrsbh") != null ? ts.getParameter("nsrsbh") : "";
/*  702: 867 */       czyDm = "huyou";
/*  703: 868 */       czyPwd = "123456";
/*  704:     */     }
/*  705: 869 */     else if (szflag)
/*  706:     */     {
/*  707: 870 */       nsrsbh = request.getParameter("nsrsbh") != null ? request.getParameter("nsrsbh") : "";
/*  708: 871 */       czyDm = "server";
/*  709: 872 */       czyPwd = "123456";
/*  710:     */     }
/*  711: 875 */     ConnectionPoolBean handler = null;
/*  712: 876 */     Connection conn = null;
/*  713: 877 */     JmjBean jmj = null;
/*  714:     */     label7848:
/*  715:     */     try
/*  716:     */     {
/*  717: 879 */       handler = ConnectionPoolBean.getHandle();
/*  718: 880 */       conn = handler.getConnection();
/*  719: 882 */       if (conn == null)
/*  720:     */       {
/*  721: 884 */         dispMessage(response, "500", "数据库连接错误，不能进行认证操作！", getCurDateTime(), czyDm, czyPwd);
/*  722: 885 */         System.out.println("[WARN] 数据库连接错误: " + nsrsbh + ", 操作员:" + czyDm + ", 登录时间:" + getCurDateTime());
/*  723: 886 */         return;
/*  724:     */       }
/*  725: 890 */       WsrzQyUserManageCmdBean curCzyDB = new WsrzQyUserManageCmdBean();
/*  726:     */       
/*  727: 892 */       curCzyDB = WsrzQyUserManageCmdBean.doQueryByCzydm(conn, nsrsbh, czyDm, czyPwd, WlrzConst.isNeedPwd());
/*  728: 895 */       if (curCzyDB == null)
/*  729:     */       {
/*  730: 896 */         dispMessage(response, "510", "操作员非法，不能进行认证操作！", getCurDateTime(), czyDm, czyPwd);
/*  731: 897 */         System.out.println("[WARN] 非法操作员: " + nsrsbh + ", 操作员:" + czyDm + ", 登录时间:" + getCurDateTime());
/*  732: 898 */         return;
/*  733:     */       }
/*  734:     */       WsrzQyUserManageCmdBean curCzyDB;
/*  735: 900 */       if ((curCzyDB.getNsrmc() != null) && (curCzyDB.getNsrmc().equals("brkj")))
/*  736:     */       {
/*  737: 902 */         System.out.println("[INFO] brkjuser " + curCzyDB.getNsrmc());
/*  738: 903 */         limitusr = true;
/*  739:     */       }
/*  740: 907 */       czyMc = "服务器";
/*  741: 908 */       swjg_dm = curCzyDB.getSwjg_dm();
/*  742:     */       
/*  743: 910 */       gdenable = curCzyDB.getGdzc_bz();
/*  744:     */       
/*  745:     */ 
/*  746:     */ 
/*  747:     */ 
/*  748:     */ 
/*  749:     */ 
/*  750:     */ 
/*  751:     */ 
/*  752:     */ 
/*  753:     */ 
/*  754:     */ 
/*  755:     */ 
/*  756:     */ 
/*  757:     */ 
/*  758:     */ 
/*  759:     */ 
/*  760:     */ 
/*  761:     */ 
/*  762: 929 */       int i_validDate = -1;
/*  763: 930 */       i_validDate = compDate(curCzyDB.getJzrq());
/*  764: 931 */       if (i_validDate == -1)
/*  765:     */       {
/*  766: 932 */         dispMessage(response, "525", "用户已超出有效期！", getCurDateTime(), 
/*  767: 933 */           czyDm, czyPwd);
/*  768: 934 */         System.out.println("[WARN] 525过期用户: " + nsrsbh + ", 操作员:" + 
/*  769: 935 */           czyDm + ", 登录时间:" + getCurDateTime());
/*  770: 936 */         return;
/*  771:     */       }
/*  772:     */       int i_validDate;
/*  773:     */       WsrzQyUserManageCmdBean curCzyDB;
/*  774: 940 */       if (b_action)
/*  775:     */       {
/*  776: 941 */         dispWelcomeMessage(response, "100", "网络认证服务器登录成功！", getCurDateTime(), curCzyDB.getJzrq());
/*  777:     */         
/*  778:     */ 
/*  779:     */ 
/*  780: 945 */         System.out.println("[INFO] 登录成功: " + nsrsbh + ",操作员:" + czyDm + ", 时间:" + getCurDateTime());
/*  781: 946 */         return;
/*  782:     */       }
/*  783:     */       int i_validDate;
/*  784:     */       WsrzQyUserManageCmdBean curCzyDB;
/*  785: 949 */       if ((!security) && (!hytrans) && (!szflag))
/*  786:     */       {
/*  787: 950 */         dispWelcomeMessage(response, "700", "客户端传递参数异常！", getCurDateTime(), curCzyDB.getJzrq());
/*  788: 951 */         System.out.println("[INFO] 登录成功: " + nsrsbh + ",操作员:" + czyDm + ", 时间:" + getCurDateTime());
/*  789: 952 */         return;
/*  790:     */       }
/*  791:     */       int i_validDate;
/*  792:     */       WsrzQyUserManageCmdBean curCzyDB;
/*  793: 957 */       String fpid = "";
/*  794: 958 */       String fpmw = "";
/*  795:     */       
/*  796: 960 */       String in_Year = "2000";String in_Month = "01";String in_Day = "01";
/*  797:     */       String in_Day;
/*  798:     */       String in_Month;
/*  799:     */       String in_Year;
/*  800:     */       String fpmw;
/*  801:     */       String fpid;
/*  802: 961 */       if (security)
/*  803:     */       {
/*  804: 962 */         fpid = parb.getParameter("fpid") == null ? "1" : parb.getParameter("fpid");
/*  805:     */         
/*  806: 964 */         in_Year = parb.getParameter("kpyear") == null ? "2001" : parb.getParameter("kpyear");
/*  807: 965 */         in_Month = parb.getParameter("kpmonth") == null ? "01" : parb.getParameter("kpmonth");
/*  808: 966 */         in_Day = parb.getParameter("kpday") == null ? "01" : parb.getParameter("kpday");
/*  809: 967 */         String mw1 = parb.getParameter("miwen1") == null ? "" : parb.getParameter("miwen1");
/*  810: 968 */         String mw2 = parb.getParameter("miwen2") == null ? "" : parb.getParameter("miwen2");
/*  811: 969 */         String mw3 = parb.getParameter("miwen3") == null ? "" : parb.getParameter("miwen3");
/*  812: 970 */         String mw4 = parb.getParameter("miwen4") == null ? "" : parb.getParameter("miwen4");
/*  813: 972 */         if (hzfw)
/*  814:     */         {
/*  815: 973 */           fpmw = mw1;
/*  816:     */         }
/*  817:     */         else
/*  818:     */         {
/*  819: 975 */           fpmw = mw1 + mw2 + mw3 + mw4;
/*  820: 976 */           mw2 = "";
/*  821: 977 */           mw3 = "";
/*  822: 978 */           mw4 = "";
/*  823:     */         }
/*  824: 980 */         fpmw = TransQuotePrintable(fpmw);
/*  825:     */         
/*  826: 982 */         String chkprq = in_Year + in_Month + in_Day;
/*  827: 986 */         if (!RzCheckKprqLimit.fpCheckKprqLimit(chkprq, null))
/*  828:     */         {
/*  829: 987 */           dispMessage(response, "660", "超过抵扣期限的发票,不能进行认证。", getCurDateTime(), czyDm, czyPwd);
/*  830: 988 */           System.out.println("[WARN] 超过180天抵扣期限: " + nsrsbh + ", 操作员:" + czyDm + ", 登录时间:" + getCurDateTime());
/*  831: 989 */           return;
/*  832:     */         }
/*  833:     */         String chkprq;
/*  834:     */         String mw4;
/*  835:     */         String mw3;
/*  836:     */         String mw2;
/*  837:     */         String mw1;
/*  838:     */         int i_validDate;
/*  839:     */         WsrzQyUserManageCmdBean curCzyDB;
/*  840: 998 */         gdzc = parb.getParameter("gd") == null ? "N" : parb
/*  841: 999 */           .getParameter("gd");
/*  842:1004 */         if (!gdzc.equals("N"))
/*  843:     */         {
/*  844:1005 */           if (gdzc.equals("02")) {
/*  845:1018 */             gdzc = "Y";
/*  846:1019 */           } else if ((gdzc.equals("01")) || (gdzc.equals("00"))) {
/*  847:1020 */             gdzc = "N";
/*  848:     */           }
/*  849:     */         }
/*  850:     */         else {
/*  851:1022 */           gdzc = "N";
/*  852:     */         }
/*  853:1024 */         fjenable = parb.getParameter("fjwz") == null ? "N" : parb
/*  854:1025 */           .getParameter("fjwz");
/*  855:     */         
/*  856:     */ 
/*  857:     */ 
/*  858:1029 */         inFpData = makeFpDataBean(parb);
/*  859:     */       }
/*  860:1030 */       else if (szflag)
/*  861:     */       {
/*  862:1031 */         in_Year = request.getParameter("kpyear") != null ? request.getParameter("kpyear") : "2001";
/*  863:1032 */         in_Month = request.getParameter("kpmonth") != null ? request.getParameter("kpmonth") : "01";
/*  864:1033 */         in_Day = request.getParameter("kpday") != null ? request.getParameter("kpday") : "01";
/*  865:1034 */         String mw1 = request.getParameter("miwen1") != null ? request.getParameter("miwen1") : "";
/*  866:1035 */         String mw2 = request.getParameter("miwen2") != null ? request.getParameter("miwen2") : "";
/*  867:1036 */         String mw3 = request.getParameter("miwen3") != null ? request.getParameter("miwen3") : "";
/*  868:1037 */         String mw4 = request.getParameter("miwen4") != null ? request.getParameter("miwen4") : "";
/*  869:1040 */         if (hzfw)
/*  870:     */         {
/*  871:1041 */           fpmw = mw1;
/*  872:     */         }
/*  873:     */         else
/*  874:     */         {
/*  875:1043 */           fpmw = mw1 + mw2 + mw3 + mw4;
/*  876:1044 */           mw2 = "";
/*  877:1045 */           mw3 = "";
/*  878:1046 */           mw4 = "";
/*  879:     */         }
/*  880:1048 */         fpmw = TransQuotePrintable(fpmw);
/*  881:1049 */         fpid = request.getParameter("fpid") != null ? request.getParameter("fpid") : "1";
/*  882:1050 */         fjenable = "N";
/*  883:1051 */         gdzc = "N";
/*  884:1052 */         inFpData = makeFpDataBean(request);
/*  885:     */       }
/*  886:1053 */       else if (hytrans)
/*  887:     */       {
/*  888:1054 */         fpid = ts.getParameter("fpid");
/*  889:1055 */         in_Year = ts.getParameter("kpyear") == null ? "2001" : 
/*  890:1056 */           ts.getParameter("kpyear");
/*  891:1057 */         in_Month = ts.getParameter("kpmonth") == null ? "01" : 
/*  892:1058 */           ts.getParameter("kpmonth");
/*  893:1059 */         in_Day = ts.getParameter("kpday") == null ? "01" : ts.getParameter("kpday");
/*  894:1060 */         String mw1 = ts.getParameter("miwen1") == null ? "" : ts.getParameter("miwen1");
/*  895:1061 */         String mw2 = ts.getParameter("miwen2") == null ? "" : ts.getParameter("miwen2");
/*  896:1062 */         String mw3 = ts.getParameter("miwen3") == null ? "" : ts.getParameter("miwen3");
/*  897:1063 */         String mw4 = ts.getParameter("miwen4") == null ? "" : ts.getParameter("miwen4");
/*  898:1065 */         if (hzfw)
/*  899:     */         {
/*  900:1066 */           fpmw = mw1;
/*  901:     */         }
/*  902:     */         else
/*  903:     */         {
/*  904:1068 */           fpmw = mw1 + mw2 + mw3 + mw4;
/*  905:1069 */           mw2 = "";
/*  906:1070 */           mw3 = "";
/*  907:1071 */           mw4 = "";
/*  908:     */         }
/*  909:1073 */         fpmw = TransQuotePrintable(fpmw);
/*  910:     */         
/*  911:1075 */         gdzc = ts.getParameter("gdzc");
/*  912:1076 */         if (gdzc != null) {
/*  913:1077 */           if (gdzc.equals("0")) {
/*  914:1078 */             gdzc = "Y";
/*  915:1079 */           } else if (gdzc.equals("1")) {
/*  916:1080 */             gdzc = "N";
/*  917:     */           }
/*  918:     */         }
/*  919:1083 */         inFpData = makeFpDataBeanHy(ts);
/*  920:     */       }
/*  921:1086 */       if ((hzfw) && ((inFpData.getHzInfoList() == null) || (inFpData.getHzInfoList().size() == 0)))
/*  922:     */       {
/*  923:1087 */         dispMessage(response, "1000", "物品格式异常！", getCurDateTime(), czyDm, czyPwd);
/*  924:1088 */         System.out.println("[ERROR]汉字防伪发票，未上传物品信息 nsr:" + nsrsbh + " fpdm:" + inFpData.getFp_dm() + " fphm:" + inFpData.getFp_hm());
/*  925:1089 */         return;
/*  926:     */       }
/*  927:     */       String in_Day;
/*  928:     */       String in_Month;
/*  929:     */       String in_Year;
/*  930:     */       String fpmw;
/*  931:     */       String fpid;
/*  932:     */       int i_validDate;
/*  933:     */       WsrzQyUserManageCmdBean curCzyDB;
/*  934:1091 */       if (!nsrsbh.equals(inFpData.getGf_nsrsbh()))
/*  935:     */       {
/*  936:1092 */         dispMessage(response, "610", "提交纳税人与购方纳税人不符,不能进行网上认证。", 
/*  937:1093 */           getCurDateTime(), czyDm, czyPwd);
/*  938:1094 */         System.out.println("[WARN] 购方不符: " + nsrsbh + ", 操作员:" + 
/*  939:1095 */           czyDm + ", 登录时间:" + getCurDateTime());
/*  940:1096 */         return;
/*  941:     */       }
/*  942:     */       String in_Day;
/*  943:     */       String in_Month;
/*  944:     */       String in_Year;
/*  945:     */       String fpmw;
/*  946:     */       String fpid;
/*  947:     */       int i_validDate;
/*  948:     */       WsrzQyUserManageCmdBean curCzyDB;
/*  949:1100 */       int jmStatus = 0;
/*  950:1101 */       String rzSj = "";
/*  951:1102 */       jmFpData = new JmFpDataBean();
/*  952:     */       
/*  953:1104 */       JmHandler curJmHandler = new JmHandler();
/*  954:     */       
/*  955:     */ 
/*  956:     */ 
/*  957:1108 */       jmj = pool.getJmj();
/*  958:1109 */       String jmjip = "";
/*  959:1110 */       if (jmj != null)
/*  960:     */       {
/*  961:1111 */         jmjip = jmj.getJmjIP();
/*  962:1112 */         if (jmj.isServer()) {
/*  963:1113 */           curJmHandler.doJmProc_Jms(fpmw, jmjip, hzfw);
/*  964:     */         } else {
/*  965:1115 */           curJmHandler.doJmProc(nsrsbh, fpmw, fpid, jmjip, hzfw);
/*  966:     */         }
/*  967:1117 */         pool.releaseJmj(jmj);
/*  968:     */       }
/*  969:     */       else
/*  970:     */       {
/*  971:1119 */         curJmHandler.setStatus(530);
/*  972:     */       }
/*  973:1127 */       jmStatus = curJmHandler.getStatus();
/*  974:     */       int jmStatus;
/*  975:1131 */       switch (jmStatus)
/*  976:     */       {
/*  977:     */       case 0: 
/*  978:1134 */         jmFpData = curJmHandler.getCurJmData();
/*  979:     */         
/*  980:1136 */         int wxyy = 0;
/*  981:1137 */         int rzjg = 0;
/*  982:1138 */         int save_Code = 0;
/*  983:1139 */         int i_err_no = jmFpData.getErrNo();
/*  984:     */         int i_err_no;
/*  985:     */         int rzjg;
/*  986:     */         int wxyy;
/*  987:1145 */         switch (i_err_no)
/*  988:     */         {
/*  989:     */         case 0: 
/*  990:     */         case 1000: 
/*  991:     */         case 1001: 
/*  992:     */         case 1002: 
/*  993:1155 */           String rddate = getRdDate(conn, nsrsbh);
/*  994:1157 */           if ((rddate.equals("no")) || (rddate.equals("error")))
/*  995:     */           {
/*  996:1158 */             dispMessage(response, "525", "取得企业认定日期出现异常！", 
/*  997:1159 */               getCurDateTime(), czyDm, czyPwd);
/*  998:1160 */             System.out.println("[WARN] 取得企业认定日期出现异常: " + nsrsbh + 
/*  999:1161 */               ", 操作员:" + czyDm + ", 登录时间:" + 
/* 1000:1162 */               getCurDateTime());
/* 1001:1163 */             return;
/* 1002:     */           }
/* 1003:     */           String rddate;
/* 1004:     */           int i_err_no;
/* 1005:     */           int save_Code;
/* 1006:     */           String jmjip;
/* 1007:     */           JmHandler curJmHandler;
/* 1008:     */           String rzSj;
/* 1009:     */           int jmStatus;
/* 1010:     */           String in_Day;
/* 1011:     */           String in_Month;
/* 1012:     */           String in_Year;
/* 1013:     */           String fpmw;
/* 1014:     */           String fpid;
/* 1015:     */           int i_validDate;
/* 1016:     */           WsrzQyUserManageCmdBean curCzyDB;
/* 1017:1166 */           java.sql.Date rdDate = java.sql.Date.valueOf(rddate);
/* 1018:     */           
/* 1019:     */ 
/* 1020:1169 */           CmpHandler cmpHandler = new CmpHandler();
/* 1021:     */           
/* 1022:1171 */           cmpHandler.setNewClient(isNewClient);
/* 1023:     */           
/* 1024:1173 */           cmpHandler.setInData(inFpData);
/* 1025:1174 */           cmpHandler.setJmData(jmFpData);
/* 1026:     */           
/* 1027:1176 */           cmpHandler.setRdDate(rdDate);
/* 1028:     */           
/* 1029:1178 */           Map map = cmpHandler.doCmpProc();
/* 1030:     */           
/* 1031:1180 */           inFpData.setIs_Zh(jmFpData.getIs_Zh());
/* 1032:1181 */           inFpData.setZhLst(jmFpData.getZhLst());
/* 1033:1182 */           inFpData.setHzInfoList(jmFpData.getHzInfoList());
/* 1034:     */           
/* 1035:     */ 
/* 1036:     */ 
/* 1037:     */ 
/* 1038:     */ 
/* 1039:1188 */           int wxyy = cmpHandler.getWxyy();
/* 1040:1189 */           int rzjg = cmpHandler.getRzjg();
/* 1041:     */           
/* 1042:     */ 
/* 1043:     */ 
/* 1044:1193 */           String err_subType = null;
/* 1045:1196 */           if ((wxyy == -1) && (rzjg == -5))
/* 1046:     */           {
/* 1047:1197 */             dispMessage(response, "670", "取得认定资格前开具的发票。不能进行认证", 
/* 1048:1198 */               getCurDateTime(), czyDm, czyPwd);
/* 1049:1199 */             System.out.println("[WARN] 认定前发票: " + nsrsbh + ", 操作员:" + 
/* 1050:1200 */               czyDm + ", 登录时间:" + getCurDateTime());
/* 1051:1201 */             return;
/* 1052:     */           }
/* 1053:     */           String err_subType;
/* 1054:     */           Map map;
/* 1055:     */           CmpHandler cmpHandler;
/* 1056:     */           java.sql.Date rdDate;
/* 1057:     */           String rddate;
/* 1058:     */           int i_err_no;
/* 1059:     */           int save_Code;
/* 1060:     */           int rzjg;
/* 1061:     */           int wxyy;
/* 1062:     */           String jmjip;
/* 1063:     */           JmHandler curJmHandler;
/* 1064:     */           String rzSj;
/* 1065:     */           int jmStatus;
/* 1066:     */           String in_Day;
/* 1067:     */           String in_Month;
/* 1068:     */           String in_Year;
/* 1069:     */           String fpmw;
/* 1070:     */           String fpid;
/* 1071:     */           int i_validDate;
/* 1072:     */           WsrzQyUserManageCmdBean curCzyDB;
/* 1073:1205 */           if ((wxyy == -1) && ((rzjg == -6) || (rzjg == -7)))
/* 1074:     */           {
/* 1075:1206 */             dispMessage(response, "660", "超过抵扣期限的发票。不能进行认证", 
/* 1076:1207 */               getCurDateTime(), czyDm, czyPwd);
/* 1077:1208 */             System.out.println("[WARN] 超过抵扣期限: " + nsrsbh + 
/* 1078:1209 */               ", 操作员:" + czyDm + ", 登录时间:" + 
/* 1079:1210 */               getCurDateTime());
/* 1080:1211 */             return;
/* 1081:     */           }
/* 1082:     */           String err_subType;
/* 1083:     */           Map map;
/* 1084:     */           CmpHandler cmpHandler;
/* 1085:     */           java.sql.Date rdDate;
/* 1086:     */           String rddate;
/* 1087:     */           int i_err_no;
/* 1088:     */           int save_Code;
/* 1089:     */           int rzjg;
/* 1090:     */           int wxyy;
/* 1091:     */           String jmjip;
/* 1092:     */           JmHandler curJmHandler;
/* 1093:     */           String rzSj;
/* 1094:     */           int jmStatus;
/* 1095:     */           String in_Day;
/* 1096:     */           String in_Month;
/* 1097:     */           String in_Year;
/* 1098:     */           String fpmw;
/* 1099:     */           String fpid;
/* 1100:     */           int i_validDate;
/* 1101:     */           WsrzQyUserManageCmdBean curCzyDB;
/* 1102:1215 */           inFpData.setFp_sl(jmFpData.getFp_sl());
/* 1103:1217 */           if (rzjg == 0)
/* 1104:     */           {
/* 1105:1218 */             inFpData.setFp_je(jmFpData.getFp_je());
/* 1106:1219 */             inFpData.setFp_se(jmFpData.getFp_se());
/* 1107:     */             
/* 1108:1221 */             inFpData.setHzInfoList(jmFpData.getHzInfoList());
/* 1109:1222 */             err_subType = "0";
/* 1110:     */           }
/* 1111:1225 */           else if ((!inFpData.getFp_dm().equals(jmFpData.getFp_dm())) || 
/* 1112:1226 */             (!inFpData.getFp_hm().equals(
/* 1113:1227 */             jmFpData.getFp_hm())) || 
/* 1114:1228 */             (!inFpData.getGf_nsrsbh().equals(
/* 1115:1229 */             jmFpData.getGf_nsrsbh())))
/* 1116:     */           {
/* 1117:1230 */             err_subType = "1";
/* 1118:     */           }
/* 1119:     */           else
/* 1120:     */           {
/* 1121:1232 */             err_subType = "2";
/* 1122:     */           }
/* 1123:     */           String err_subType;
/* 1124:     */           Map map;
/* 1125:     */           String rzSj;
/* 1126:1239 */           if (rzjg == 0)
/* 1127:     */           {
/* 1128:1241 */             GSRzFpdklMxDataBean tmpFpDklMxDataBean = new GSRzFpdklMxDataBean();
/* 1129:     */             
/* 1130:1243 */             tmpFpDklMxDataBean = setRzFpDklMx(inFpData, swjg_dm, 
/* 1131:1244 */               czyDm, czyMc);
/* 1132:     */             
/* 1133:     */ 
/* 1134:     */ 
/* 1135:1248 */             double se = inFpData.getFp_se();
/* 1136:1249 */             String sl = inFpData.getFp_sl();
/* 1137:     */             GSRzFpdklMxDataBean tmpFpDklMxDataBean;
/* 1138:     */             int save_Code;
/* 1139:     */             String rzSj;
/* 1140:1251 */             if (jmFpData.getErrNo() == 0)
/* 1141:     */             {
/* 1142:1252 */               tmpFpDklMxDataBean.setFp_lb("YB");
/* 1143:     */             }
/* 1144:1253 */             else if ((jmFpData.getErrNo() == 1001) || (se == 0.0D))
/* 1145:     */             {
/* 1146:1254 */               System.out.println("[INFO] 属于废旧物资发票");
/* 1147:1255 */               tmpFpDklMxDataBean.setFp_lb("FJ");
/* 1148:1256 */               fpzl = "FJ";
/* 1149:1258 */               if (fjenable.equals("N"))
/* 1150:     */               {
/* 1151:1259 */                 dispMessage(response, "700", "当前客户端版本不支持废旧物资发票认证", getCurDateTime(), czyDm, czyPwd);
/* 1152:1260 */                 System.out.println("[WARN] 当前客户端版本不支持废旧物资发票认证:" + nsrsbh + ", 操作员:" + czyDm + ", 认证时间:" + getCurDateTime());
/* 1153:1261 */                 return;
/* 1154:     */               }
/* 1155:     */               String sl;
/* 1156:     */               double se;
/* 1157:     */               String err_subType;
/* 1158:     */               Map map;
/* 1159:     */               CmpHandler cmpHandler;
/* 1160:     */               java.sql.Date rdDate;
/* 1161:     */               String rddate;
/* 1162:     */               int i_err_no;
/* 1163:     */               int rzjg;
/* 1164:     */               int wxyy;
/* 1165:     */               String jmjip;
/* 1166:     */               JmHandler curJmHandler;
/* 1167:     */               int jmStatus;
/* 1168:     */               String in_Day;
/* 1169:     */               String in_Month;
/* 1170:     */               String in_Year;
/* 1171:     */               String fpmw;
/* 1172:     */               String fpid;
/* 1173:     */               int i_validDate;
/* 1174:     */               WsrzQyUserManageCmdBean curCzyDB;
/* 1175:1264 */               if (limitusr)
/* 1176:     */               {
/* 1177:1266 */                 dispMessage(response, "700", "当前客户端版本不支持废旧物资发票认证", getCurDateTime(), czyDm, czyPwd);
/* 1178:1267 */                 System.out.println("[WARN] 当前客户端版本不支持废旧物资发票认证:" + nsrsbh + ", 操作员:" + czyDm + ", 认证时间:" + getCurDateTime());
/* 1179:     */                 break label7848;
/* 1180:     */               }
/* 1181:     */             }
/* 1182:1272 */             if (jmFpData.getErrNo() == 1002)
/* 1183:     */             {
/* 1184:1273 */               System.out.println("[INFO] 属于普通发票");
/* 1185:1274 */               if ((szflag) || (limitusr))
/* 1186:     */               {
/* 1187:1276 */                 dispMessage(response, "700", "当前客户端版本不支持普通发票验证", getCurDateTime(), czyDm, czyPwd);
/* 1188:1277 */                 System.out.println("[WARN] 当前客户端版本不支持普通发票验证:" + nsrsbh + ", 操作员:" + czyDm + ", 认证时间:" + getCurDateTime());
/* 1189:     */                 break label7848;
/* 1190:     */               }
/* 1191:1281 */               java.sql.Date rz_sj = null;
/* 1192:1282 */               rz_sj = new java.sql.Date(
/* 1193:1283 */                 System.currentTimeMillis());
/* 1194:1284 */               SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
/* 1195:1285 */               rzSj = sdf.format(rz_sj);
/* 1196:     */               
/* 1197:     */ 
/* 1198:     */ 
/* 1199:1289 */               tmpFpDklMxDataBean.setFp_lb("P1");
/* 1200:1290 */               save_Code = tmpFpDklMxDataBean.doInserPvoice(conn);
/* 1201:1291 */               fpzl = "P1";
/* 1202:1292 */               String r_je = Double.toString(jmFpData.getFp_je());
/* 1203:1293 */               String r_se = Double.toString(jmFpData.getFp_se());
/* 1204:1294 */               rsj = rzSj + " " + r_je + " " + r_se;
/* 1205:1295 */               rzSj = rzSj + " " + r_je + " " + r_se + " " + jmFpData.getFp_dm() + " " + jmFpData.getFp_hm();
/* 1206:1298 */               if (save_Code == 1)
/* 1207:     */               {
/* 1208:1299 */                 System.out.println("[INFO] 普票验证通过:" + nsrsbh + ", " + rzSj + "(" + ulms + "ms)");
/* 1209:1300 */                 dispMessage(response, "1002", "认证相符(普票)", rzSj, czyDm, czyPwd);
/* 1210:1301 */                 return;
/* 1211:     */               }
/* 1212:     */               String r_se;
/* 1213:     */               String r_je;
/* 1214:     */               SimpleDateFormat sdf;
/* 1215:     */               java.sql.Date rz_sj;
/* 1216:     */               String sl;
/* 1217:     */               double se;
/* 1218:     */               GSRzFpdklMxDataBean tmpFpDklMxDataBean;
/* 1219:     */               String err_subType;
/* 1220:     */               Map map;
/* 1221:     */               CmpHandler cmpHandler;
/* 1222:     */               java.sql.Date rdDate;
/* 1223:     */               String rddate;
/* 1224:     */               int i_err_no;
/* 1225:     */               int save_Code;
/* 1226:     */               int rzjg;
/* 1227:     */               int wxyy;
/* 1228:     */               String jmjip;
/* 1229:     */               JmHandler curJmHandler;
/* 1230:     */               String rzSj;
/* 1231:     */               int jmStatus;
/* 1232:     */               String in_Day;
/* 1233:     */               String in_Month;
/* 1234:     */               String in_Year;
/* 1235:     */               String fpmw;
/* 1236:     */               String fpid;
/* 1237:     */               int i_validDate;
/* 1238:     */               WsrzQyUserManageCmdBean curCzyDB;
/* 1239:1302 */               if (save_Code == 2)
/* 1240:     */               {
/* 1241:1303 */                 rzSj = tmpFpDklMxDataBean.getDs_swjg_dm();
/* 1242:     */                 
/* 1243:1305 */                 System.out.println("[INFO] 普票重复认证:" + nsrsbh + "," + rzSj + "(" + ulms + "ms)");
/* 1244:1306 */                 dispMessage(response, "1200", "重复认证(普票)", rzSj, czyDm, czyPwd);
/* 1245:1307 */                 return;
/* 1246:     */               }
/* 1247:     */               String r_se;
/* 1248:     */               String r_je;
/* 1249:     */               SimpleDateFormat sdf;
/* 1250:     */               java.sql.Date rz_sj;
/* 1251:     */               String sl;
/* 1252:     */               double se;
/* 1253:     */               GSRzFpdklMxDataBean tmpFpDklMxDataBean;
/* 1254:     */               String err_subType;
/* 1255:     */               Map map;
/* 1256:     */               CmpHandler cmpHandler;
/* 1257:     */               java.sql.Date rdDate;
/* 1258:     */               String rddate;
/* 1259:     */               int i_err_no;
/* 1260:     */               int save_Code;
/* 1261:     */               int rzjg;
/* 1262:     */               int wxyy;
/* 1263:     */               String jmjip;
/* 1264:     */               JmHandler curJmHandler;
/* 1265:     */               String rzSj;
/* 1266:     */               int jmStatus;
/* 1267:     */               String in_Day;
/* 1268:     */               String in_Month;
/* 1269:     */               String in_Year;
/* 1270:     */               String fpmw;
/* 1271:     */               String fpid;
/* 1272:     */               int i_validDate;
/* 1273:     */               WsrzQyUserManageCmdBean curCzyDB;
/* 1274:1309 */               System.out.println("[INFO] 普票验证写数据库出现异常:" + nsrsbh + "," + rsj + "(" + ulms + "ms)");
/* 1275:1310 */               dispMessage(response, "900", "其它异常", rzSj, czyDm, czyPwd);
/* 1276:1311 */               return;
/* 1277:     */             }
/* 1278:     */             String sl;
/* 1279:     */             double se;
/* 1280:     */             GSRzFpdklMxDataBean tmpFpDklMxDataBean;
/* 1281:     */             String err_subType;
/* 1282:     */             Map map;
/* 1283:     */             CmpHandler cmpHandler;
/* 1284:     */             java.sql.Date rdDate;
/* 1285:     */             String rddate;
/* 1286:     */             int i_err_no;
/* 1287:     */             int rzjg;
/* 1288:     */             int wxyy;
/* 1289:     */             String jmjip;
/* 1290:     */             JmHandler curJmHandler;
/* 1291:     */             String rzSj;
/* 1292:     */             int jmStatus;
/* 1293:     */             String in_Day;
/* 1294:     */             String in_Month;
/* 1295:     */             String in_Year;
/* 1296:     */             String fpmw;
/* 1297:     */             String fpid;
/* 1298:     */             int i_validDate;
/* 1299:     */             WsrzQyUserManageCmdBean curCzyDB;
/* 1300:1316 */             if (WlrzConst.isSupGDZC()) {
/* 1301:1317 */               tmpFpDklMxDataBean.setGdzc_bz(gdzc);
/* 1302:     */             } else {
/* 1303:1319 */               tmpFpDklMxDataBean.setGdzc_bz("N");
/* 1304:     */             }
/* 1305:1322 */             int save_Code = tmpFpDklMxDataBean.doInsert(conn);
/* 1306:     */             
/* 1307:1324 */             System.out.println("[INFO] 保存返回结果.." + save_Code);
/* 1308:     */             
/* 1309:1326 */             ulms = System.currentTimeMillis() - ulms;
/* 1310:1328 */             if (save_Code == 1)
/* 1311:     */             {
/* 1312:1331 */               java.util.Date sj = tmpFpDklMxDataBean.getRz_Sj();
/* 1313:     */               
/* 1314:1333 */               SimpleDateFormat sdf = new SimpleDateFormat(
/* 1315:1334 */                 "yyyy-MM-dd HH:mm:ss");
/* 1316:1335 */               rzSj = sdf.format(sj);
/* 1317:     */               
/* 1318:1337 */               String rtn_fpje = Double.toString(jmFpData.getFp_je());
/* 1319:1338 */               String rtn_fpse = Double.toString(jmFpData.getFp_se());
/* 1320:1340 */               if (rtn_fpje != null) {
/* 1321:1342 */                 rzSj = rzSj + " " + rtn_fpje + " " + rtn_fpse + " " + jmFpData.getFp_dm() + " " + jmFpData.getFp_hm();
/* 1322:     */               }
/* 1323:1344 */               if (tmpFpDklMxDataBean.getRz_Jg() == 3)
/* 1324:     */               {
/* 1325:1345 */                 dispMessage(response, "680", "解密成功，属于失控发票", rzSj, czyDm, czyPwd);
/* 1326:1346 */                 return;
/* 1327:     */               }
/* 1328:     */               String rtn_fpse;
/* 1329:     */               String rtn_fpje;
/* 1330:     */               SimpleDateFormat sdf;
/* 1331:     */               java.util.Date sj;
/* 1332:     */               String sl;
/* 1333:     */               double se;
/* 1334:     */               GSRzFpdklMxDataBean tmpFpDklMxDataBean;
/* 1335:     */               String err_subType;
/* 1336:     */               Map map;
/* 1337:     */               CmpHandler cmpHandler;
/* 1338:     */               java.sql.Date rdDate;
/* 1339:     */               String rddate;
/* 1340:     */               int i_err_no;
/* 1341:     */               int save_Code;
/* 1342:     */               int rzjg;
/* 1343:     */               int wxyy;
/* 1344:     */               String jmjip;
/* 1345:     */               JmHandler curJmHandler;
/* 1346:     */               String rzSj;
/* 1347:     */               int jmStatus;
/* 1348:     */               String in_Day;
/* 1349:     */               String in_Month;
/* 1350:     */               String in_Year;
/* 1351:     */               String fpmw;
/* 1352:     */               String fpid;
/* 1353:     */               int i_validDate;
/* 1354:     */               WsrzQyUserManageCmdBean curCzyDB;
/* 1355:1351 */               if (fpzl.equals("YB"))
/* 1356:     */               {
/* 1357:1352 */                 dispMessage(response, "0", "解密成功，比对正确(增值税)", rzSj, czyDm, czyPwd);
/* 1358:1353 */                 System.out.println("[INFO] 认证通过(增值税):" + nsrsbh + "," + tmpFpDklMxDataBean.getFpdm() + "-" + tmpFpDklMxDataBean.getFphm() + "," + rzSj + "(" + ulms + "ms)");
/* 1359:     */               }
/* 1360:1354 */               else if (fpzl.equals("FJ"))
/* 1361:     */               {
/* 1362:1355 */                 dispMessage(response, "1001", "解密成功，比对正确(废旧)", rzSj, czyDm, czyPwd);
/* 1363:1356 */                 System.out.println("[INFO] 认证通过(废旧):" + nsrsbh + "," + tmpFpDklMxDataBean.getFpdm() + "-" + tmpFpDklMxDataBean.getFphm() + "," + rzSj + "(" + ulms + "ms)");
/* 1364:     */               }
/* 1365:1357 */               else if (fpzl.equals("P1"))
/* 1366:     */               {
/* 1367:1358 */                 dispMessage(response, "1002", "解密成功，比对正确(普通)", rzSj, czyDm, czyPwd);
/* 1368:1359 */                 System.out.println("[INFO] 认证通过(普通):" + nsrsbh + "," + tmpFpDklMxDataBean.getFpdm() + "-" + tmpFpDklMxDataBean.getFphm() + "," + rzSj + "(" + ulms + "ms)");
/* 1369:     */               }
/* 1370:1365 */               return;
/* 1371:     */             }
/* 1372:     */             String sl;
/* 1373:     */             double se;
/* 1374:     */             GSRzFpdklMxDataBean tmpFpDklMxDataBean;
/* 1375:     */             String err_subType;
/* 1376:     */             Map map;
/* 1377:     */             CmpHandler cmpHandler;
/* 1378:     */             java.sql.Date rdDate;
/* 1379:     */             String rddate;
/* 1380:     */             int i_err_no;
/* 1381:     */             int save_Code;
/* 1382:     */             int rzjg;
/* 1383:     */             int wxyy;
/* 1384:     */             String jmjip;
/* 1385:     */             JmHandler curJmHandler;
/* 1386:     */             String rzSj;
/* 1387:     */             int jmStatus;
/* 1388:     */             String in_Day;
/* 1389:     */             String in_Month;
/* 1390:     */             String in_Year;
/* 1391:     */             String fpmw;
/* 1392:     */             String fpid;
/* 1393:     */             int i_validDate;
/* 1394:     */             WsrzQyUserManageCmdBean curCzyDB;
/* 1395:1367 */             System.out.println("[INFO] 存库出错(" + save_Code + "): " + nsrsbh + "," + tmpFpDklMxDataBean.getFpdm() + "-" + tmpFpDklMxDataBean.getFphm() + "(" + ulms + "ms)");
/* 1396:1371 */             if (save_Code == 1)
/* 1397:     */             {
/* 1398:1372 */               save_Code = 0;
/* 1399:     */             }
/* 1400:     */             else
/* 1401:     */             {
/* 1402:1376 */               if (save_Code == 2)
/* 1403:     */               {
/* 1404:1378 */                 rzSj = tmpFpDklMxDataBean.getDs_swjg_dm();
/* 1405:1379 */                 String rtn_fpje = Double.toString(jmFpData.getFp_je());
/* 1406:1380 */                 String rtn_fpse = Double.toString(jmFpData.getFp_se());
/* 1407:     */                 
/* 1408:1382 */                 rzSj = rzSj + " " + rtn_fpje + " " + rtn_fpse + " " + jmFpData.getFp_dm() + " " + jmFpData.getFp_hm();
/* 1409:1383 */                 save_Code = -3;
/* 1410:1384 */                 if (fpzl.equals("YB"))
/* 1411:     */                 {
/* 1412:1387 */                   if (security) {
/* 1413:1388 */                     dispMessage(response, "650", "重复认证(增值税发票)", 
/* 1414:1389 */                       rzSj, czyDm, czyPwd);
/* 1415:     */                   } else {
/* 1416:1391 */                     dispMessage(response, "0", "重复认证(增值税发票)", 
/* 1417:1392 */                       rzSj, czyDm, czyPwd);
/* 1418:     */                   }
/* 1419:1394 */                   System.out.println("[INFO] 重复认证(增值税):" + nsrsbh + 
/* 1420:1395 */                     ", " + rzSj + "(" + ulms + "ms)");
/* 1421:     */                 }
/* 1422:1396 */                 else if (fpzl.equals("FJ"))
/* 1423:     */                 {
/* 1424:1397 */                   dispMessage(response, "1100", "重复认证(废旧物资发票)", 
/* 1425:1398 */                     rzSj, czyDm, czyPwd);
/* 1426:1399 */                   System.out.println("[INFO] 重复认证(废旧):" + nsrsbh + 
/* 1427:1400 */                     ", " + rzSj + "(" + ulms + "ms)");
/* 1428:     */                 }
/* 1429:1401 */                 else if (fpzl.equals("P1"))
/* 1430:     */                 {
/* 1431:1402 */                   dispMessage(response, "1200", " 重复认证(普通发票)", 
/* 1432:1403 */                     rzSj, czyDm, czyPwd);
/* 1433:1404 */                   System.out.println("[INFO] 重复认证(普通):" + nsrsbh + 
/* 1434:1405 */                     ", " + rzSj + "(" + ulms + "ms)");
/* 1435:     */                 }
/* 1436:1412 */                 return;
/* 1437:     */               }
/* 1438:     */               String sl;
/* 1439:     */               double se;
/* 1440:     */               GSRzFpdklMxDataBean tmpFpDklMxDataBean;
/* 1441:     */               CmpHandler cmpHandler;
/* 1442:     */               java.sql.Date rdDate;
/* 1443:     */               String rddate;
/* 1444:     */               int i_err_no;
/* 1445:     */               int save_Code;
/* 1446:     */               int rzjg;
/* 1447:     */               int wxyy;
/* 1448:     */               String jmjip;
/* 1449:     */               JmHandler curJmHandler;
/* 1450:     */               int jmStatus;
/* 1451:     */               String in_Day;
/* 1452:     */               String in_Month;
/* 1453:     */               String in_Year;
/* 1454:     */               String fpmw;
/* 1455:     */               String fpid;
/* 1456:     */               int i_validDate;
/* 1457:     */               WsrzQyUserManageCmdBean curCzyDB;
/* 1458:1414 */               if (save_Code == 3) {
/* 1459:1415 */                 save_Code = -1;
/* 1460:     */               }
/* 1461:     */             }
/* 1462:     */           }
/* 1463:     */           else
/* 1464:     */           {
/* 1465:1418 */             java.sql.Date sj = null;
/* 1466:1419 */             sj = new java.sql.Date(System.currentTimeMillis());
/* 1467:1420 */             SimpleDateFormat sdf = new SimpleDateFormat(
/* 1468:1421 */               "yyyy-MM-dd HH:mm:ss");
/* 1469:1422 */             String rSj = sdf.format(sj);
/* 1470:     */             
/* 1471:1424 */             String rtn_fpje = Double.toString(jmFpData.getFp_je());
/* 1472:1425 */             String rtn_fpse = Double.toString(jmFpData.getFp_se());
/* 1473:1427 */             if (rtn_fpje != null) {
/* 1474:1428 */               rSj = rSj + " " + rtn_fpje + " " + rtn_fpse;
/* 1475:     */             }
/* 1476:1430 */             if (err_subType.equals("1")) {
/* 1477:1431 */               if (isNewClient)
/* 1478:     */               {
/* 1479:1432 */                 map.put("czyDm", czyDm);
/* 1480:1433 */                 map.put("czyPwd", czyPwd);
/* 1481:     */                 
/* 1482:     */ 
/* 1483:1436 */                 String retxml = CreateXmlBean.genCmpResult1(map, false);
/* 1484:1437 */                 dispMessage1(response, retxml);
/* 1485:     */               }
/* 1486:     */               else
/* 1487:     */               {
/* 1488:1452 */                 dispMessage(response, "590", "解密成功，但比对不正确", rSj, 
/* 1489:1453 */                   czyDm, czyPwd);
/* 1490:     */               }
/* 1491:     */             }
/* 1492:1456 */             if (err_subType.equals("2")) {
/* 1493:1457 */               if (isNewClient)
/* 1494:     */               {
/* 1495:1458 */                 map.put("czyDm", czyDm);
/* 1496:1459 */                 map.put("czyPwd", czyPwd);
/* 1497:     */                 
/* 1498:1461 */                 String retxml = CreateXmlBean.genCmpResult1(map, false);
/* 1499:1462 */                 dispMessage1(response, retxml);
/* 1500:     */               }
/* 1501:     */               else
/* 1502:     */               {
/* 1503:1477 */                 dispMessage(response, "590", "解密成功，但比对不正确", rSj, 
/* 1504:1478 */                   czyDm, czyPwd);
/* 1505:     */               }
/* 1506:     */             }
/* 1507:1481 */             System.out.println("[INFO] 认证未通过:" + nsrsbh + "," + 
/* 1508:1482 */               inFpData.getFp_dm() + "-" + 
/* 1509:1483 */               inFpData.getFp_hm() + "," + rzSj + "(" + ulms + 
/* 1510:1484 */               "ms)");
/* 1511:     */             
/* 1512:     */ 
/* 1513:     */ 
/* 1514:     */ 
/* 1515:1489 */             return;
/* 1516:     */           }
/* 1517:     */           String err_subType;
/* 1518:     */           Map map;
/* 1519:     */           CmpHandler cmpHandler;
/* 1520:     */           java.sql.Date rdDate;
/* 1521:     */           String rddate;
/* 1522:     */           int i_err_no;
/* 1523:     */           int save_Code;
/* 1524:     */           int rzjg;
/* 1525:     */           int wxyy;
/* 1526:     */           String jmjip;
/* 1527:     */           JmHandler curJmHandler;
/* 1528:     */           String rzSj;
/* 1529:     */           int jmStatus;
/* 1530:     */           String in_Day;
/* 1531:     */           String in_Month;
/* 1532:     */           String in_Year;
/* 1533:     */           String fpmw;
/* 1534:     */           String fpid;
/* 1535:     */           int i_validDate;
/* 1536:     */           WsrzQyUserManageCmdBean curCzyDB;
/* 1537:1492 */           if (save_Code < 0) {
/* 1538:1493 */             throw new SQLException("[WARN] save error");
/* 1539:     */           }
/* 1540:1496 */           if ((rzjg == 0) && (save_Code != 0))
/* 1541:     */           {
/* 1542:1497 */             System.out.println("[WARN] 700保存数据失败。");
/* 1543:1498 */             dispMessage(response, "700", "数据库操作异常，请重新认证！", 
/* 1544:1499 */               getCurDateTime(), czyDm, czyPwd);
/* 1545:1500 */             return;
/* 1546:     */           }
/* 1547:     */         case 400: 
/* 1548:     */           int save_Code;
/* 1549:     */           String jmjip;
/* 1550:     */           JmHandler curJmHandler;
/* 1551:     */           String rzSj;
/* 1552:     */           int jmStatus;
/* 1553:     */           String in_Day;
/* 1554:     */           String in_Month;
/* 1555:     */           String in_Year;
/* 1556:     */           String fpmw;
/* 1557:     */           String fpid;
/* 1558:     */           int i_validDate;
/* 1559:     */           WsrzQyUserManageCmdBean curCzyDB;
/* 1560:1504 */           wxyy = 128;
/* 1561:1505 */           rzjg = 5;
/* 1562:1506 */           dispMessage(response, "400", "提交的纳税人识别号非法，请重新提交认证！", 
/* 1563:1507 */             getCurDateTime(), czyDm, czyPwd);
/* 1564:1508 */           break;
/* 1565:     */         case 403: 
/* 1566:1523 */           System.out.println("[INFO] 当前认证人与发票的购方、销方均无关:" + nsrsbh + 
/* 1567:1524 */             "," + inFpData.getFp_dm() + "-" + 
/* 1568:1525 */             inFpData.getFp_hm());
/* 1569:     */           
/* 1570:1527 */           dispMessage(response, "403", "当前认证人与发票的购方、销方均无关，不能进行认证！", 
/* 1571:1528 */             getCurDateTime(), czyDm, czyPwd);
/* 1572:     */           
/* 1573:1530 */           break;
/* 1574:     */         }
/* 1575:1533 */         if (((i_err_no >= 1) && (i_err_no <= 255)) || (i_err_no == -1))
/* 1576:     */         {
/* 1577:1534 */           wxyy = 128;
/* 1578:1535 */           rzjg = 5;
/* 1579:1536 */           System.out.println("1-255:save exception info");
/* 1580:1537 */           dispMessage(response, String.valueOf(255), 
/* 1581:1538 */             "提交的密文有误，请重新提交认证！", getCurDateTime(), czyDm, 
/* 1582:1539 */             czyPwd);
/* 1583:     */           
/* 1584:     */ 
/* 1585:1542 */           System.out.println("[WARN] " + i_err_no + "无法解密：纳税号:" + 
/* 1586:1543 */             nsrsbh + ", 操作员:" + czyDm + ", 认证时间:" + 
/* 1587:1544 */             getCurDateTime());
/* 1588:1545 */           return;
/* 1589:     */         }
/* 1590:     */         break;
/* 1591:     */       case 530: 
/* 1592:     */         String jmjip;
/* 1593:     */         JmHandler curJmHandler;
/* 1594:     */         String rzSj;
/* 1595:     */         String in_Day;
/* 1596:     */         String in_Month;
/* 1597:     */         String in_Year;
/* 1598:     */         String fpmw;
/* 1599:     */         String fpid;
/* 1600:     */         int i_validDate;
/* 1601:     */         WsrzQyUserManageCmdBean curCzyDB;
/* 1602:1601 */         System.out.println("[ERROR] 530没有可用的解密工作站");
/* 1603:1602 */         dispMessage(response, "530", "系统忙，请稍候再试...", 
/* 1604:1603 */           getCurDateTime(), czyDm, czyPwd);
/* 1605:1604 */         break;
/* 1606:     */       case 540: 
/* 1607:1607 */         System.out.println("[ERROR] 540连接解密工作站失败");
/* 1608:1608 */         dispMessage(response, "540", "连接解密工作站失败，请重新提交数据", 
/* 1609:1609 */           getCurDateTime(), czyDm, czyPwd);
/* 1610:1610 */         break;
/* 1611:     */       case 550: 
/* 1612:1613 */         System.out.println("[ERROR] 550无法读取返回的解密数据");
/* 1613:1614 */         dispMessage(response, "550", "读取数据失败，请重新提交数据", 
/* 1614:1615 */           getCurDateTime(), czyDm, czyPwd);
/* 1615:1616 */         break;
/* 1616:     */       default: 
/* 1617:1619 */         System.out.println("[ERROR] " + jmStatus + "未知错误");
/* 1618:     */       }
/* 1619:     */     }
/* 1620:     */     catch (SQLException e)
/* 1621:     */     {
/* 1622:1624 */       e.printStackTrace();
/* 1623:1625 */       dispMessage(response, "700", "数据库操作异常，请重新认证！", getCurDateTime(), 
/* 1624:1626 */         czyDm, czyPwd);
/* 1625:1627 */       System.out.println("[info] 数据库操作异常 " + e);
/* 1626:     */       try
/* 1627:     */       {
/* 1628:1638 */         if ((conn != null) && (!conn.isClosed()))
/* 1629:     */         {
/* 1630:1639 */           conn.close();
/* 1631:1640 */           conn = null;
/* 1632:     */         }
/* 1633:     */       }
/* 1634:     */       catch (SQLException se)
/* 1635:     */       {
/* 1636:1643 */         System.out.println(se.getMessage());
/* 1637:     */       }
/* 1638:     */     }
/* 1639:     */     catch (Exception e)
/* 1640:     */     {
/* 1641:1630 */       e.printStackTrace();
/* 1642:1631 */       System.out.println("[ERROR] 其它异常, 纳税号:" + nsrsbh + " 异常 " + 
/* 1643:1632 */         e.toString());
/* 1644:     */       
/* 1645:1634 */       dispMessage(response, "800", "发生其它异常", getCurDateTime(), czyDm, 
/* 1646:1635 */         czyPwd);
/* 1647:     */       try
/* 1648:     */       {
/* 1649:1638 */         if ((conn != null) && (!conn.isClosed()))
/* 1650:     */         {
/* 1651:1639 */           conn.close();
/* 1652:1640 */           conn = null;
/* 1653:     */         }
/* 1654:     */       }
/* 1655:     */       catch (SQLException se)
/* 1656:     */       {
/* 1657:1643 */         System.out.println(se.getMessage());
/* 1658:     */       }
/* 1659:     */     }
/* 1660:     */     finally
/* 1661:     */     {
/* 1662:     */       try
/* 1663:     */       {
/* 1664:1638 */         if ((conn != null) && (!conn.isClosed()))
/* 1665:     */         {
/* 1666:1639 */           conn.close();
/* 1667:1640 */           conn = null;
/* 1668:     */         }
/* 1669:     */       }
/* 1670:     */       catch (SQLException se)
/* 1671:     */       {
/* 1672:1643 */         System.out.println(se.getMessage());
/* 1673:     */       }
/* 1674:     */     }
/* 1675:     */   }
/* 1676:     */   
/* 1677:     */   private GSRzFpdklMxDataBean setRzFpDklMx(InFpDataBean curFpData, String swjg_dm, String czydm, String czymc)
/* 1678:     */   {
/* 1679:1656 */     java.sql.Date curDate = new java.sql.Date(System.currentTimeMillis());
/* 1680:1657 */     String strDate = curDate.toString();
/* 1681:1658 */     String cYear = strDate.substring(0, 4);
/* 1682:1659 */     String cMonth = strDate.substring(5, 7);
/* 1683:1660 */     int rzyf = (Integer.parseInt(cYear) - 1900) * 16 + 
/* 1684:1661 */       Integer.parseInt(cMonth);
/* 1685:     */     
/* 1686:1663 */     String kpRq = curFpData.getKprq();
/* 1687:1664 */     String mYear = kpRq.substring(0, 2);
/* 1688:1665 */     String mMonth = kpRq.substring(2, 4);
/* 1689:1666 */     String mDay = kpRq.substring(4, 6);
/* 1690:1667 */     String curSKpRq = "20" + mYear + "-" + mMonth + "-" + mDay;
/* 1691:     */     
/* 1692:1669 */     java.sql.Date curKpRq = java.sql.Date.valueOf(curSKpRq);
/* 1693:     */     
/* 1694:1671 */     GSRzFpdklMxDataBean tmpBean = new GSRzFpdklMxDataBean();
/* 1695:1672 */     tmpBean.setRz_Nsrsbh(curFpData.getRz_nsrsbh());
/* 1696:1673 */     tmpBean.setFpdm(curFpData.getFp_dm());
/* 1697:1674 */     tmpBean.setFphm(curFpData.getFp_hm());
/* 1698:1675 */     tmpBean.setSwjg_Dm(swjg_dm);
/* 1699:1676 */     tmpBean.setRz_Nsrsbh(curFpData.getRz_nsrsbh());
/* 1700:1677 */     tmpBean.setRz_Fs(5);
/* 1701:1678 */     tmpBean.setRz_Jg(0);
/* 1702:1679 */     tmpBean.setJglb("0");
/* 1703:1680 */     tmpBean.setRz_Wxyy(0);
/* 1704:1681 */     tmpBean.setRz_Rgjz_Bz("N");
/* 1705:     */     
/* 1706:1683 */     tmpBean.setRz_Yf(rzyf);
/* 1707:1684 */     tmpBean.setJskh("");
/* 1708:     */     
/* 1709:1686 */     tmpBean.setFp_Kprq(curSKpRq);
/* 1710:1687 */     tmpBean.setGf_Nsrsbh(curFpData.getGf_nsrsbh());
/* 1711:1688 */     tmpBean.setXf_Nsrsbh(curFpData.getXf_nsrsbh());
/* 1712:     */     
/* 1713:1690 */     tmpBean.setJe(curFpData.getFp_je());
/* 1714:1691 */     tmpBean.setSe(curFpData.getFp_se());
/* 1715:1692 */     tmpBean.setSl(Integer.parseInt(curFpData.getFp_sl()));
/* 1716:1694 */     if (curFpData.getQd_bz().equals("Y")) {
/* 1717:1695 */       tmpBean.setFp_Mw(curFpData.getFpmw().substring(0, 108));
/* 1718:     */     } else {
/* 1719:1697 */       tmpBean.setFp_Mw(curFpData.getFpmw());
/* 1720:     */     }
/* 1721:1700 */     tmpBean.setQd_bz(curFpData.getQd_bz());
/* 1722:1701 */     tmpBean.setWpmxs(curFpData.getHzInfoList());
/* 1723:     */     
/* 1724:     */ 
/* 1725:1704 */     tmpBean.setIs_Zh(curFpData.getIs_Zh());
/* 1726:1705 */     tmpBean.setZhLst(curFpData.getZhLst());
/* 1727:     */     
/* 1728:1707 */     tmpBean.setCrcsum("");
/* 1729:1708 */     tmpBean.setCzy_Dm("server");
/* 1730:1709 */     tmpBean.setCzy_Mc(czymc);
/* 1731:1710 */     return tmpBean;
/* 1732:     */   }
/* 1733:     */   
/* 1734:     */   private GSRzFpdklMxDataBean setRzFpDklMx(InFpDataBean curFpData, String swjg_dm, String czydm, String czymc, String locaid)
/* 1735:     */   {
/* 1736:1721 */     java.sql.Date curDate = new java.sql.Date(System.currentTimeMillis());
/* 1737:1722 */     String strDate = curDate.toString();
/* 1738:1723 */     String cYear = strDate.substring(0, 4);
/* 1739:1724 */     String cMonth = strDate.substring(5, 7);
/* 1740:1725 */     int rzyf = (Integer.parseInt(cYear) - 1900) * 16 + 
/* 1741:1726 */       Integer.parseInt(cMonth);
/* 1742:     */     
/* 1743:1728 */     String kpRq = curFpData.getKprq();
/* 1744:1729 */     String mYear = kpRq.substring(0, 2);
/* 1745:1730 */     String mMonth = kpRq.substring(2, 4);
/* 1746:1731 */     String mDay = kpRq.substring(4, 6);
/* 1747:1732 */     String curSKpRq = "20" + mYear + "-" + mMonth + "-" + mDay;
/* 1748:     */     
/* 1749:1734 */     java.sql.Date curKpRq = java.sql.Date.valueOf(curSKpRq);
/* 1750:     */     
/* 1751:1736 */     GSRzFpdklMxDataBean tmpBean = new GSRzFpdklMxDataBean();
/* 1752:1737 */     tmpBean.setRz_Nsrsbh(curFpData.getRz_nsrsbh());
/* 1753:1738 */     tmpBean.setFpdm(curFpData.getFp_dm());
/* 1754:1739 */     tmpBean.setFphm(curFpData.getFp_hm());
/* 1755:1740 */     tmpBean.setSwjg_Dm(swjg_dm);
/* 1756:1741 */     tmpBean.setRz_Nsrsbh(curFpData.getRz_nsrsbh());
/* 1757:1742 */     tmpBean.setRz_Fs(5);
/* 1758:1743 */     tmpBean.setRz_Jg(0);
/* 1759:1744 */     tmpBean.setJglb("0");
/* 1760:1745 */     tmpBean.setRz_Wxyy(0);
/* 1761:1746 */     tmpBean.setRz_Rgjz_Bz("N");
/* 1762:     */     
/* 1763:1748 */     tmpBean.setRz_Yf(rzyf);
/* 1764:1749 */     tmpBean.setJskh("");
/* 1765:     */     
/* 1766:1751 */     tmpBean.setFp_Kprq(curSKpRq);
/* 1767:1752 */     tmpBean.setGf_Nsrsbh(curFpData.getGf_nsrsbh());
/* 1768:1753 */     tmpBean.setXf_Nsrsbh(curFpData.getXf_nsrsbh());
/* 1769:     */     
/* 1770:1755 */     tmpBean.setJe(curFpData.getFp_je());
/* 1771:1756 */     tmpBean.setSe(curFpData.getFp_se());
/* 1772:1757 */     tmpBean.setSl(Integer.parseInt(curFpData.getFp_sl()));
/* 1773:1758 */     tmpBean.setFp_Mw(curFpData.getFpmw());
/* 1774:1759 */     tmpBean.setCrcsum(locaid);
/* 1775:1760 */     tmpBean.setCzy_Dm(czydm);
/* 1776:1761 */     tmpBean.setCzy_Mc(czymc);
/* 1777:     */     
/* 1778:1763 */     return tmpBean;
/* 1779:     */   }
/* 1780:     */   
/* 1781:     */   private List getInHzInfoList(String sh, String gfmc, String xfmc, String mxdata)
/* 1782:     */   {
/* 1783:1774 */     System.out.println("===================" + mxdata);
/* 1784:1775 */     int mxcount = 0;
/* 1785:     */     try
/* 1786:     */     {
/* 1787:1777 */       mxcount = Integer.parseInt(mxdata.substring(0, 1));
/* 1788:     */     }
/* 1789:     */     catch (Exception E)
/* 1790:     */     {
/* 1791:1779 */       System.out.println("物品明细数据异常 " + sh + " " + mxdata);
/* 1792:1780 */       return new ArrayList();
/* 1793:     */     }
/* 1794:1782 */     String[] mxs = (mxdata.substring(1) + " ").split("¤");
/* 1795:1783 */     if (mxcount * 3 != mxs.length)
/* 1796:     */     {
/* 1797:1784 */       System.out.println("物品明细数据异常 " + sh + " " + mxdata);
/* 1798:1785 */       return new ArrayList();
/* 1799:     */     }
/* 1800:1787 */     List rtn = new ArrayList();
/* 1801:1788 */     rtn.add(replaceInvlidCharacter(gfmc));
/* 1802:1789 */     rtn.add(replaceInvlidCharacter(xfmc));
/* 1803:1790 */     rtn.add(mxdata.subSequence(0, 1));
/* 1804:1791 */     for (int i = 0; i < mxs.length; i++) {
/* 1805:1792 */       rtn.add(replaceInvlidCharacter(mxs[i].trim()));
/* 1806:     */     }
/* 1807:1795 */     return rtn;
/* 1808:     */   }
/* 1809:     */   
/* 1810:     */   private String replaceInvlidCharacter(String original)
/* 1811:     */   {
/* 1812:1802 */     String newString = original.replaceAll("\t", "");
/* 1813:1803 */     newString = newString.replaceAll("\t", "");
/* 1814:1804 */     newString = newString.replaceAll(" ", "");
/* 1815:1805 */     newString = newString.replaceAll("　", "");
/* 1816:     */     
/* 1817:1807 */     return newString;
/* 1818:     */   }
/* 1819:     */   
/* 1820:     */   private String JMSvr(HttpServletRequest req)
/* 1821:     */   {
/* 1822:1815 */     String rtn = "";
/* 1823:1816 */     String fpmw = req.getParameter("mw");
/* 1824:1817 */     fpmw = TransQuotePrintable(fpmw);
/* 1825:1818 */     if ((fpmw.length() == 84) || (fpmw.length() == 108) || (fpmw.length() == 780))
/* 1826:     */     {
/* 1827:1819 */       JmjBean jb = pool.getJmj();
/* 1828:1820 */       jb = pool.getJmj();
/* 1829:1821 */       if (jb != null)
/* 1830:     */       {
/* 1831:1822 */         String jmjip = jb.getJmjIP();
/* 1832:1823 */         JmHandler jh = new JmHandler();
/* 1833:1824 */         boolean hzfw = "hzfw".equals(req.getParameter("action"));
/* 1834:1825 */         if (jb.isServer()) {
/* 1835:1826 */           jh.doJmProc_Jms(fpmw, jmjip, hzfw);
/* 1836:     */         } else {
/* 1837:1828 */           jh.doJmProc("", fpmw, "", jmjip, hzfw);
/* 1838:     */         }
/* 1839:1830 */         JmFpDataBean jmBean = jh.getCurJmData();
/* 1840:1831 */         pool.releaseJmj(jb);
/* 1841:1832 */         switch (jh.getStatus())
/* 1842:     */         {
/* 1843:     */         case 0: 
/* 1844:1833 */           rtn = "0&";
/* 1845:1834 */           rtn = rtn + jmBean.getFp_dm() + "\n";
/* 1846:1835 */           rtn = rtn + jmBean.getFp_hm() + "\n";
/* 1847:1836 */           rtn = rtn + jmBean.getGf_nsrsbh() + "\n";
/* 1848:1837 */           rtn = rtn + jmBean.getKprq() + "\n";
/* 1849:1838 */           rtn = rtn + jmBean.getFp_je() + "\n";
/* 1850:1839 */           rtn = rtn + jmBean.getFp_se() + "\n";
/* 1851:1840 */           rtn = rtn + jmBean.getFp_sl() + "\n";
/* 1852:1841 */           rtn = rtn + jmBean.getXf_nsrsbh() + "\n";
/* 1853:1842 */           break;
/* 1854:     */         case 530: 
/* 1855:1843 */           rtn = ""; break;
/* 1856:     */         case 540: 
/* 1857:1844 */           rtn = ""; break;
/* 1858:     */         case 550: 
/* 1859:1845 */           rtn = ""; break;
/* 1860:     */         default: 
/* 1861:1846 */           rtn = "97&"; break;
/* 1862:     */         }
/* 1863:     */       }
/* 1864:     */       else
/* 1865:     */       {
/* 1866:1849 */         rtn = "98&无可用解密机，请重试";
/* 1867:     */       }
/* 1868:     */     }
/* 1869:     */     else
/* 1870:     */     {
/* 1871:1852 */       rtn = "99&密文长度有误";
/* 1872:     */     }
/* 1873:1854 */     return rtn;
/* 1874:     */   }
/* 1875:     */   
/* 1876:     */   public static void main(String[] args)
/* 1877:     */   {
/* 1878:1857 */     new WlrzJmjControlServletLn().getInHzInfoList("", "", "", 
/* 1879:1858 */       "2阿萨德飞¤as¤2341¤¤阿萨德飞¤");
/* 1880:     */   }
/* 1881:     */ }


/* Location:           D:\htjs\document\wsrz\WsrzEjbInf\
 * Qualified Name:     gov.sat.tax.fwsk.wlrz.WlrzJmjControlServletLn
 * JD-Core Version:    0.7.0.1
 */